smoother manual launch

This commit is contained in:
Chloe committed 2025-01-22 22:16:02 -07:00
1 parent 4782431bae
commit c070b5cfe0
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 loadAutomatically = PreferenceUtils.get(context).getBoolean(PreferenceUtils.Key.LOAD_AUTOMATICALLY)
val availableUpdate = releaseManager.availableLauncherUpdate.value
if (availableUpdate != null) {
if (loadAutomatically && availableUpdate != null) {
cards.add(LaunchNotificationType.LAUNCHER_UPDATE_AVAILABLE)
}
@@ -162,7 +162,7 @@ class LaunchViewModel(private val application: Application): ViewModel() {
return cancelLaunch(true)
}
if (!readyTimerPassed) {
if (!readyTimerPassed && !hasManuallyStarted) {
return _uiState.emit(LaunchUIState.Working)
}