diff options
| author | Ali B <abittin@gmail.com> | 2019-03-18 12:17:31 +0300 |
|---|---|---|
| committer | Ali B <abittin@gmail.com> | 2019-03-18 13:38:22 +0300 |
| commit | 61aa65bcae2094a09353b728182cfc109e1ac817 (patch) | |
| tree | 9f0d3151bf80f7f9466729c3f88b62bc5d2b5891 | |
| parent | a2942b5326535e5fe72268388984f66b1a8d20e1 (diff) | |
KeyHandler: fix transition to important interruptions
Depending on the zenmode configuration, it may not
be overriding ringer state, resulting important
interruptions zen state overrun by ringer normal state.
Avoid this by calling zenmode last.
Change-Id: I44c7e54d6ac33975fe023ec2fa74b7bae9ecd7c7
| -rw-r--r-- | DeviceHandler/src/com/slim/device/KeyHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DeviceHandler/src/com/slim/device/KeyHandler.java b/DeviceHandler/src/com/slim/device/KeyHandler.java index 2cb75c9..dca57b8 100644 --- a/DeviceHandler/src/com/slim/device/KeyHandler.java +++ b/DeviceHandler/src/com/slim/device/KeyHandler.java @@ -202,8 +202,8 @@ public class KeyHandler implements DeviceKeyHandler { setZenMode(Settings.Global.ZEN_MODE_ALARMS); break; case MODE_PRIORITY_ONLY: - setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL); + setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); break; case MODE_NONE: setZenMode(Settings.Global.ZEN_MODE_OFF); |
