mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-23 16:59:21 +00:00
smoother manual launch
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -56,9 +56,10 @@ fun determineDisplayedCards(context: Context): List<LaunchNotificationType> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val releaseManager = ReleaseManager.get(context)
|
val releaseManager = ReleaseManager.get(context)
|
||||||
|
val loadAutomatically = PreferenceUtils.get(context).getBoolean(PreferenceUtils.Key.LOAD_AUTOMATICALLY)
|
||||||
|
|
||||||
val availableUpdate = releaseManager.availableLauncherUpdate.value
|
val availableUpdate = releaseManager.availableLauncherUpdate.value
|
||||||
if (availableUpdate != null) {
|
if (loadAutomatically && availableUpdate != null) {
|
||||||
cards.add(LaunchNotificationType.LAUNCHER_UPDATE_AVAILABLE)
|
cards.add(LaunchNotificationType.LAUNCHER_UPDATE_AVAILABLE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class LaunchViewModel(private val application: Application): ViewModel() {
|
|||||||
return cancelLaunch(true)
|
return cancelLaunch(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!readyTimerPassed) {
|
if (!readyTimerPassed && !hasManuallyStarted) {
|
||||||
return _uiState.emit(LaunchUIState.Working)
|
return _uiState.emit(LaunchUIState.Working)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user