From fc719f7e02bd18c8e4119089956a77e4d14c8bb3 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Wed, 21 Sep 2022 17:22:21 +0200 Subject: [PATCH] Fix: Showing update secondary action while downloading --- .../com/machiav3lli/fdroid/ui/viewmodels/AppViewModelX.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/machiav3lli/fdroid/ui/viewmodels/AppViewModelX.kt b/src/main/kotlin/com/machiav3lli/fdroid/ui/viewmodels/AppViewModelX.kt index 6a017605..b0f2dafb 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/ui/viewmodels/AppViewModelX.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/ui/viewmodels/AppViewModelX.kt @@ -58,7 +58,7 @@ class AppViewModelX(val db: DatabaseX, val packageName: String) : ViewModel() { product != null && installed == null && compatible && downloadState.value == null val canUpdate = product != null && compatible && product.canUpdate(installed) && - !shouldIgnore(product.versionCode) + !shouldIgnore(product.versionCode) && downloadState.value == null val canUninstall = product != null && installed != null && !installed.isSystem val canLaunch = product != null && installed != null && installed.launcherActivities.isNotEmpty()