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:
@@ -60,7 +60,6 @@ class BlacklistViewModel(application: Application) : BaseAndroidViewModel(applic
|
|||||||
it.packageName != null
|
it.packageName != null
|
||||||
&& it.versionName != null
|
&& it.versionName != null
|
||||||
&& it.applicationInfo != null
|
&& it.applicationInfo != null
|
||||||
&& it.applicationInfo.enabled
|
|
||||||
}
|
}
|
||||||
.forEach {
|
.forEach {
|
||||||
val black = Black(it.packageName).apply {
|
val black = Black(it.packageName).apply {
|
||||||
|
|||||||
Reference in New Issue
Block a user