Fix: Showing update secondary action while downloading

This commit is contained in:
machiav3lli 2022-09-21 17:22:21 +02:00
parent 534d65d63c
commit fc719f7e02

View File

@ -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()