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

Commit 806dbae9 authored by John Spurlock's avatar John Spurlock
Browse files

Zen: Map transition to ringer-mode silent to "priority".

Instead of "none".

Bug:16875664
Change-Id: I2a425663f08f35854e7e857330afc20eef01ef2e
parent fbc3f198
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -301,8 +301,8 @@ public class ZenModeHelper {
            final int ringerMode = mAudioManager.getRingerMode();
            int newZen = -1;
            if (ringerMode == AudioManager.RINGER_MODE_SILENT) {
                if (mZenMode != Global.ZEN_MODE_NO_INTERRUPTIONS) {
                    newZen = Global.ZEN_MODE_NO_INTERRUPTIONS;
                if (mZenMode == Global.ZEN_MODE_OFF) {
                    newZen = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
                }
            } else if ((ringerMode == AudioManager.RINGER_MODE_NORMAL
                    || ringerMode == AudioManager.RINGER_MODE_VIBRATE)