Make sure the right DND config is used
The notifications are sometimes updated before the new reminder policy is set and are incorrectly shown/hidden in the statusbar and notification panel. Bug: 152070118 Test: Manual - See bug details Change-Id: I3352cdd71538dd9f1333b6e737690e39dd713ee4
This commit is contained in:
committed by
Edward Savage-Jones
parent
dd1b26bf25
commit
62f0d6d87b
@@ -844,13 +844,13 @@ public class ZenModeHelper {
|
||||
final boolean policyChanged = !Objects.equals(getNotificationPolicy(mConfig),
|
||||
getNotificationPolicy(config));
|
||||
if (!config.equals(mConfig)) {
|
||||
mConfig = config;
|
||||
dispatchOnConfigChanged();
|
||||
updateConsolidatedPolicy(reason);
|
||||
}
|
||||
if (policyChanged) {
|
||||
dispatchOnPolicyChanged();
|
||||
}
|
||||
mConfig = config;
|
||||
mHandler.postApplyConfig(config, reason, triggeringComponent, setRingerMode);
|
||||
return true;
|
||||
} catch (SecurityException e) {
|
||||
|
||||
Reference in New Issue
Block a user