forked from geode-sdk/android-launcher
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 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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user