Refresh the whole rule in zen listing screen

Because the whole rule is pushed to NMS when it's
enabled/disabled.

Test: manual
Fixes: 135170330
Change-Id: I4bbc30f82dab07cff9184f9ab8a6f729499c6126
This commit is contained in:
Julia Reynolds
2019-06-13 12:29:15 -04:00
parent 0de0d5be39
commit 78ef02eb8f
2 changed files with 4 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ public class ZenModeAutomaticRulesPreferenceController extends
for (int i = 0; i < sortedRules.length; i++) {
ZenRulePreference pref = (ZenRulePreference) mPreferenceCategory.getPreference(i);
// we are either:
// 1. updating the enabled state or name of the rule
// 1. updating everything about the rule
// 2. rule was added or deleted, so reload the entire list
if (Objects.equals(pref.mId, sortedRules[i].getKey())) {
AutomaticZenRule rule = sortedRules[i].getValue();