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

Commit 795a5146 authored by John Spurlock's avatar John Spurlock
Browse files

Volume: Only play the new vibrate hint once per volume-down.

Bug: 18666334
Change-Id: Idfa1d0c104bb310548fde533932bffc2b41eafff
parent 2ea3650d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -3110,12 +3110,13 @@ public class AudioService extends IAudioService.Stub {
                break;
            }
            if ((direction == AudioManager.ADJUST_LOWER)) {
                if (VOLUME_SETS_RINGER_MODE_SILENT
                        && mPrevVolDirection != AudioManager.ADJUST_LOWER) {
                if (mPrevVolDirection != AudioManager.ADJUST_LOWER) {
                    if (VOLUME_SETS_RINGER_MODE_SILENT) {
                        ringerMode = RINGER_MODE_SILENT;
                    } else {
                        result |= AudioManager.FLAG_SHOW_VIBRATE_HINT;
                    }
                }
            } else if (direction == AudioManager.ADJUST_RAISE) {
                ringerMode = RINGER_MODE_NORMAL;
            }