diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-09-20 06:11:20 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-09-20 06:11:20 +0000 |
commit | 74ef6940a794afe31f56690f22e7caf55fd18e6d (patch) | |
tree | 8c16b17d66b6b6b28633785b4f15f4f199e43541 /app/src/main/java | |
parent | 8ae0914b4719c99b54e41f4138c1785aebfc30e0 (diff) |
5819: remove PWA PLayer from dummy system apps.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt b/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt index d6af1e0..febda91 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt @@ -37,7 +37,8 @@ class AppListsRepository( private val coroutineScope: CoroutineScope ) { companion object { - private const val settingsPackageName = "com.android.settings" + private const val PNAME_SETTINGS = "com.android.settings" + private const val PNAME_PWAPLAYER = "foundation.e.pwaplayer" } val dummySystemApp = ApplicationDescription( @@ -100,8 +101,10 @@ class AppListsRepository( } private fun isNotHiddenSystemApp(app: ApplicationInfo, launcherApps: List<String>): Boolean { - if (app.packageName == settingsPackageName) { + if (app.packageName == PNAME_SETTINGS) { return false + } else if (app.packageName == PNAME_PWAPLAYER) { + return true } else if (app.hasFlag(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) { return true } else if (!app.hasFlag(ApplicationInfo.FLAG_SYSTEM)) { |