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

Commit 745b43c2 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Fix issue 2589563: Able to set ringer volume to 0 outside of silent mode." into froyo

parents 01e3feaf 527c3ab5
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1128,6 +1128,9 @@ public class AudioService extends IAudioService.Stub {
            if (direction == AudioManager.ADJUST_RAISE) {
            if (direction == AudioManager.ADJUST_RAISE) {
                // exiting silent mode
                // exiting silent mode
                newRingerMode = AudioManager.RINGER_MODE_NORMAL;
                newRingerMode = AudioManager.RINGER_MODE_NORMAL;
            } else {
                // prevent last audible index to reach 0
                adjustVolumeIndex = false;
            }
            }
        }
        }