Fix apps not being uninstallable

This commit is contained in:
MM20 2023-11-08 19:07:17 +01:00
parent b7452f6bce
commit 67c7094cd2
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -60,7 +60,7 @@ internal data class LauncherApp(
override val profile: AppProfile
get() = if (isMainProfile) AppProfile.Personal else AppProfile.Work
override val isSystemApp: Boolean = launcherActivityInfo.applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM == 0
override val isSystemApp: Boolean = launcherActivityInfo.applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM != 0
override val canUninstall: Boolean
get() = !isSystemApp && isMainProfile