1
0
Fork 0

For #3103 - Exit fullscreen on pause (#3112)

master
Emily Kager 2019-06-04 08:36:16 -07:00 committed by Colin Lee
parent ca186c8776
commit ef0618a3d1
1 changed files with 5 additions and 0 deletions

View File

@ -615,6 +615,11 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
}
}
override fun onPause() {
super.onPause()
fullScreenFeature.onBackPressed()
}
private fun removeSessionIfNeeded() {
val session = getSessionById() ?: return
if (session.source == Session.Source.ACTION_VIEW) requireComponents.core.sessionManager.remove(session)