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

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

This commit is contained in:
Sawyer Blatz 2020-04-29 14:03:59 -07:00 committed by GitHub
parent 4006501d41
commit 38e9b34659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {