Merge "Volume: Only play the new vibrate hint once per volume-down." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2f47eaff9b
@@ -3110,12 +3110,13 @@ public class AudioService extends IAudioService.Stub {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((direction == AudioManager.ADJUST_LOWER)) {
|
if ((direction == AudioManager.ADJUST_LOWER)) {
|
||||||
if (VOLUME_SETS_RINGER_MODE_SILENT
|
if (mPrevVolDirection != AudioManager.ADJUST_LOWER) {
|
||||||
&& mPrevVolDirection != AudioManager.ADJUST_LOWER) {
|
if (VOLUME_SETS_RINGER_MODE_SILENT) {
|
||||||
ringerMode = RINGER_MODE_SILENT;
|
ringerMode = RINGER_MODE_SILENT;
|
||||||
} else {
|
} else {
|
||||||
result |= AudioManager.FLAG_SHOW_VIBRATE_HINT;
|
result |= AudioManager.FLAG_SHOW_VIBRATE_HINT;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (direction == AudioManager.ADJUST_RAISE) {
|
} else if (direction == AudioManager.ADJUST_RAISE) {
|
||||||
ringerMode = RINGER_MODE_NORMAL;
|
ringerMode = RINGER_MODE_NORMAL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user