For #1323 - Attempt to pop inclusive out of browser if no current session
parent
4489edd97b
commit
fd1e3d6339
|
@ -81,9 +81,9 @@ open class HomeActivity : AppCompatActivity() {
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
// There is no session, or it has timed out; we should pop everything to home if not in private mode
|
// No session or timed out; we should try to pop inclusive to browser if not in private mode
|
||||||
if (components.core.sessionStorage.current() == null && !browsingModeManager.isPrivate) {
|
if (components.core.sessionStorage.current() == null && !browsingModeManager.isPrivate) {
|
||||||
navHost.navController.popBackStack(R.id.homeFragment, false)
|
navHost.navController.popBackStack(R.id.browserFragment, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue