1
0
Fork 0

Closes #784 - After session timeout, pop everything to home

master
Emily Kager 2019-03-21 10:59:17 -07:00 committed by Colin Lee
parent ea2646aa3f
commit f52d9537c9
1 changed files with 4 additions and 0 deletions

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