|
|
|
@ -833,11 +833,15 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
final override fun onUserLeaveHint() {
|
|
|
|
|
// The notification permission prompt will trigger onUserLeaveHint too.
|
|
|
|
|
// We shouldn't treat this situation as user leaving.
|
|
|
|
|
if (!components.notificationsDelegate.isRequestingPermission) {
|
|
|
|
|
supportFragmentManager.primaryNavigationFragment?.childFragmentManager?.fragments?.forEach {
|
|
|
|
|
if (it is UserInteractionHandler && it.onHomePressed()) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
super.onUserLeaveHint()
|
|
|
|
|
}
|
|
|
|
|