Merge "Make sure the right DND config is used" am: 749cd52664
Change-Id: Iaa07c8884f21e4fc50a8a54d4b28e60e8dde66ba
This commit is contained in:
@@ -844,13 +844,13 @@ public class ZenModeHelper {
|
|||||||
final boolean policyChanged = !Objects.equals(getNotificationPolicy(mConfig),
|
final boolean policyChanged = !Objects.equals(getNotificationPolicy(mConfig),
|
||||||
getNotificationPolicy(config));
|
getNotificationPolicy(config));
|
||||||
if (!config.equals(mConfig)) {
|
if (!config.equals(mConfig)) {
|
||||||
|
mConfig = config;
|
||||||
dispatchOnConfigChanged();
|
dispatchOnConfigChanged();
|
||||||
updateConsolidatedPolicy(reason);
|
updateConsolidatedPolicy(reason);
|
||||||
}
|
}
|
||||||
if (policyChanged) {
|
if (policyChanged) {
|
||||||
dispatchOnPolicyChanged();
|
dispatchOnPolicyChanged();
|
||||||
}
|
}
|
||||||
mConfig = config;
|
|
||||||
mHandler.postApplyConfig(config, reason, triggeringComponent, setRingerMode);
|
mHandler.postApplyConfig(config, reason, triggeringComponent, setRingerMode);
|
||||||
return true;
|
return true;
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user