Vibrate when ringer changes to vibrate
Test: manual Change-Id: Icf7bf0d1dfa632d674b9e6aaff0c98099a4b2eb3 Fixes: 78665512
This commit is contained in:
@@ -727,6 +727,12 @@ public class VolumeDialogImpl implements VolumeDialog {
|
||||
}
|
||||
|
||||
protected void onStateChangedH(State state) {
|
||||
if (mState != null && state != null
|
||||
&& mState.ringerModeInternal != state.ringerModeInternal
|
||||
&& state.ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE) {
|
||||
mController.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK));
|
||||
}
|
||||
|
||||
mState = state;
|
||||
mDynamic.clear();
|
||||
// add any new dynamic rows
|
||||
|
||||
Reference in New Issue
Block a user