am 967e19a4: am 2f47eaff: Merge "Volume: Only play the new vibrate hint once per volume-down." into lmp-mr1-dev
* commit '967e19a402046ba771cdebe99da2488bfc1959b1': Volume: Only play the new vibrate hint once per volume-down.
This commit is contained in:
@@ -3110,11 +3110,12 @@ public class AudioService extends IAudioService.Stub {
|
||||
break;
|
||||
}
|
||||
if ((direction == AudioManager.ADJUST_LOWER)) {
|
||||
if (VOLUME_SETS_RINGER_MODE_SILENT
|
||||
&& mPrevVolDirection != AudioManager.ADJUST_LOWER) {
|
||||
ringerMode = RINGER_MODE_SILENT;
|
||||
} else {
|
||||
result |= AudioManager.FLAG_SHOW_VIBRATE_HINT;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user