Closes #784 - After session timeout, pop everything to home
parent
ea2646aa3f
commit
f52d9537c9
|
@ -65,6 +65,10 @@ 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 (components.core.sessionStorage.current() == null) {
|
||||||
|
navHost.navController.popBackStack(R.id.homeFragment, false)
|
||||||
|
}
|
||||||
components.analytics.metrics.track(Event.OpenedApp)
|
components.analytics.metrics.track(Event.OpenedApp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue