summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation/e
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/foundation/e')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt7
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)) {