From 74ef6940a794afe31f56690f22e7caf55fd18e6d Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Tue, 20 Sep 2022 06:11:20 +0000 Subject: 5819: remove PWA PLayer from dummy system apps. --- .../e/privacycentralapp/data/repositories/AppListsRepository.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/src/main/java') 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): 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)) { -- cgit v1.2.1