Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #9703 - Exit fullscreen in onPause and onSessionSelected (#10016)
Browse files Browse the repository at this point in the history
* For #9703 - Call fullScreenChanged in onPause

* For #10015 - Exit full screen if new session selected
  • Loading branch information
ekager committed Apr 17, 2020
1 parent fb7b875 commit 39107b4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session

sessionManager.register(observer = object : SessionManager.Observer {
override fun onSessionSelected(session: Session) {
fullScreenChanged(false)
browserToolbarView.expand()
}
}, owner = viewLifecycleOwner)
Expand Down Expand Up @@ -577,6 +578,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
super.onPause()
// If we didn't enter PiP, exit full screen on pause
if (!enteredPip) {
fullScreenChanged(false)
fullScreenFeature.onBackPressed()
}
enteredPip = false
Expand Down

0 comments on commit 39107b4

Please sign in to comment.