For #10071: Fixes PWA showing toolbar onPause (#10306)

fennec/production
Sawyer Blatz 4 years ago committed by GitHub
parent 4006501d41
commit 38e9b34659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -568,9 +568,8 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
final override fun onPause() { final override fun onPause() {
super.onPause() super.onPause()
// If we didn't enter PiP, exit full screen on pause // If we didn't enter PiP, exit full screen on pause
if (!enteredPip) { if (!enteredPip && fullScreenFeature.onBackPressed()) {
fullScreenChanged(false) fullScreenChanged(false)
fullScreenFeature.onBackPressed()
} }
enteredPip = false enteredPip = false
if (findNavController().currentDestination?.id != R.id.searchFragment) { if (findNavController().currentDestination?.id != R.id.searchFragment) {

Loading…
Cancel
Save