Merge "Make sure the right DND config is used"
This commit is contained in:
@@ -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