From 8b7301a30d1b31cc8f82c20b677685585e47ee1e Mon Sep 17 00:00:00 2001 From: Odweta Date: Sun, 22 Dec 2024 12:07:51 +0100 Subject: [PATCH] improved refreshed button --- .../app/src/main/java/com/odweta/solon/Launch.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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)