Vibrate when ringer changes to vibrate

Test: manual
Change-Id: Icf7bf0d1dfa632d674b9e6aaff0c98099a4b2eb3
Fixes: 78665512
This commit is contained in:
Beverly
2018-05-22 13:02:15 -04:00
parent 95509057f8
commit 83aaae4136

View File

@@ -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