1.9.0
Added 1
- ComponentActivity now implements OnUserLeaveHintProvider to allow components to register callbacks for onUserLeaveHint events.
Changed 1
- The OnBackPressedCallback, BackHandler, and PredictiveBackHandler APIs now warn when calling onBackPressedDispatcher.onBackPressed() while handling back, as this will always break the Predictive Back Animation.
From AndroidX Activity
Important changes since 1.8.0 ComponentActivity now implements OnUserLeaveHintProvider to allow components to callbacks for onUserLeaveHint events. The OnBackPressedCallback, BackHandler, and PredictiveBackHandler APIs now warn when calling onBackPressedDispatcher.onBackPressed() when handling back as that will always break the Predictive Back Animation. See the best practices guide for more details.