2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/16238 - Back button now dismisses Suggested Logins

By using PromptFeature's onBackPressed the user can now press back to dismiss the Suggested Logins prompt without inadvertently navigating back
This commit is contained in:
codrut.topliceanu 2021-01-06 14:51:14 +02:00 committed by Arturo Mejia
parent 556fac6f3a
commit df625cd8b9

View File

@ -969,6 +969,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler,
override fun onBackPressed(): Boolean { override fun onBackPressed(): Boolean {
return findInPageIntegration.onBackPressed() || return findInPageIntegration.onBackPressed() ||
fullScreenFeature.onBackPressed() || fullScreenFeature.onBackPressed() ||
promptsFeature.onBackPressed() ||
sessionFeature.onBackPressed() || sessionFeature.onBackPressed() ||
removeSessionIfNeeded() removeSessionIfNeeded()
} }