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

Commit 54d49157 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Make DND tile primary toggle remember favorite zen" into oc-dev

am: 46398517

Change-Id: I4f1d959c130a008aad49c4aab0aa225bfb035ab3
parents 4ee3fb4c 46398517
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -132,7 +132,8 @@ public class DndTile extends QSTileImpl<BooleanState> {
        if (mState.value) {
        if (mState.value) {
            mController.setZen(ZEN_MODE_OFF, null, TAG);
            mController.setZen(ZEN_MODE_OFF, null, TAG);
        } else {
        } else {
            mController.setZen(ZEN_MODE_ALARMS, null, TAG);
            int zen = Prefs.getInt(mContext, Prefs.Key.DND_FAVORITE_ZEN, Global.ZEN_MODE_ALARMS);
            mController.setZen(zen, null, TAG);
        }
        }
    }
    }