From 38e9b3465975a09e8ef8be0802bbda62c406404c Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Wed, 29 Apr 2020 14:03:59 -0700 Subject: [PATCH] For #10071: Fixes PWA showing toolbar onPause (#10306) --- .../main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt index d9802b7e4f..b56c7ee0fa 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt @@ -568,9 +568,8 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session final override fun onPause() { super.onPause() // If we didn't enter PiP, exit full screen on pause - if (!enteredPip) { + if (!enteredPip && fullScreenFeature.onBackPressed()) { fullScreenChanged(false) - fullScreenFeature.onBackPressed() } enteredPip = false if (findNavController().currentDestination?.id != R.id.searchFragment) {