Ignore presets for whitelist mode
This commit is contained in:
parent
040fd51765
commit
0417e51c66
1 changed files with 5 additions and 3 deletions
|
|
@ -182,9 +182,11 @@ class HMAService(val pms: IPackageManager) : IHMAService.Stub() {
|
|||
if (query in tpl.appList) return !appConfig.useWhitelist
|
||||
}
|
||||
|
||||
for (presetName in appConfig.applyPresets) {
|
||||
val preset = AppPresets.instance.getPresetByName(presetName) ?: continue
|
||||
if (preset.containsPackage(query)) return !appConfig.useWhitelist
|
||||
if (!appConfig.useWhitelist) {
|
||||
for (presetName in appConfig.applyPresets) {
|
||||
val preset = AppPresets.instance.getPresetByName(presetName) ?: continue
|
||||
if (preset.containsPackage(query)) return true
|
||||
}
|
||||
}
|
||||
|
||||
return appConfig.useWhitelist
|
||||
|
|
|
|||
Loading…
Reference in a new issue