Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10e663b6 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix crash when disabling notification listeners

Bug: 111474881
Test: manual
Change-Id: Ia5778bf43cb1f04fa389f19f43b0591b0a7fa0a3
parent 3b1ce723
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -375,8 +375,7 @@ public class ZenModeHelper {
            newConfig = mConfig.copy();
            for (int i = newConfig.automaticRules.size() - 1; i >= 0; i--) {
                ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i));
                if (rule.component.getPackageName().equals(packageName)
                        && canManageAutomaticZenRule(rule)) {
                if (rule.pkg.equals(packageName) && canManageAutomaticZenRule(rule)) {
                    newConfig.automaticRules.removeAt(i);
                }
            }