BlacklistViewModel: Don't filter for packages to be enabled again

getPackageInfoMap method already filters values based on PREFERENCE_UPDATES_EXTENDED
preference. Doing this again here without any check results in loss of
ability to blacklist disabled apps.

Credits: https://gitlab.com/AuroraOSS/AuroraStore/-/merge_requests/205

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-05-25 14:36:54 +05:30
parent 0d5c90bcd9
commit d9dd90df32

View File

@@ -60,7 +60,6 @@ class BlacklistViewModel(application: Application) : BaseAndroidViewModel(applic
it.packageName != null
&& it.versionName != null
&& it.applicationInfo != null
&& it.applicationInfo.enabled
}
.forEach {
val black = Black(it.packageName).apply {