2
0
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:
Emily Kager 2019-03-21 10:59:17 -07:00 committed by Colin Lee
parent ea2646aa3f
commit f52d9537c9

View File

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