diff --git a/mobile/app/src/main/java/com/odweta/solon/Launch.kt b/mobile/app/src/main/java/com/odweta/solon/Launch.kt index 12a812a..1ae19bc 100644 --- a/mobile/app/src/main/java/com/odweta/solon/Launch.kt +++ b/mobile/app/src/main/java/com/odweta/solon/Launch.kt @@ -87,16 +87,18 @@ fun launchContinue( if (!internetAwaitListenerRunning) setOnInternetAvailListener(ctx) + if (!global.launched) { + // show the default (main) screen + global.currentScreen = Screen.Main + + // inside show the timetable + global.currentScreenElement = ScreenElement.Timetable + } + global.launched = true global.refreshed = true refreshButtonContentColor.value = Color.White - // show the default (main) screen - global.currentScreen = Screen.Main - - // inside show the timetable - global.currentScreenElement = ScreenElement.Timetable - // show the full name of the user in the toolbar as a status if (Util.internetAvail(ctx)) { statusFactory.show(StatusType.NameRole)