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

Commit 62f0d6d8 authored by Daniel Hunt's avatar Daniel Hunt Committed by Edward Savage-Jones
Browse files

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
parent dd1b26bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {