Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated onBackPressed, support predictive back gesture #2959

Merged
merged 1 commit into from Oct 19, 2022

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Oct 8, 2022

Summary

Update the use of onBackPressed functions which have been deprecated to use the new OnBackPressedDispatcher and OnBackPressedCallback. This also makes it possible for the app to support the upcoming predictive back gesture.

Screenshots

No visible change, unless you have enabled support for the predictive back gesture in developer settings in which case you can see the home screen when there is no more going back in the app:

demo-nav2.mp4

Link to pull request in Documentation repository

n/a

Any other notes

 - Update onBackPressed functions which have been deprecated to use the new OnBackPressedDispatcher and OnBackPressedCallback
 - Indicate support for the predictive back gesture
@JBassett JBassett merged commit 47e8957 into home-assistant:master Oct 19, 2022
@jpelgrom jpelgrom deleted the onbackpressedcallback branch October 19, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants