Fix apps not being uninstallable
This commit is contained in:
parent
b7452f6bce
commit
67c7094cd2
@ -60,7 +60,7 @@ internal data class LauncherApp(
|
|||||||
override val profile: AppProfile
|
override val profile: AppProfile
|
||||||
get() = if (isMainProfile) AppProfile.Personal else AppProfile.Work
|
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
|
override val canUninstall: Boolean
|
||||||
get() = !isSystemApp && isMainProfile
|
get() = !isSystemApp && isMainProfile
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user