mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
Closes #784 - After session timeout, pop everything to home
This commit is contained in:
parent
ea2646aa3f
commit
f52d9537c9
@ -65,6 +65,10 @@ open class HomeActivity : AppCompatActivity() {
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
// There is no session, or it has timed out; we should pop everything to home
|
||||
if (components.core.sessionStorage.current() == null) {
|
||||
navHost.navController.popBackStack(R.id.homeFragment, false)
|
||||
}
|
||||
components.analytics.metrics.track(Event.OpenedApp)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user