No vibrate on initial ringer setting am: 3fbdd17f45

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12360814

Change-Id: I51961436c3daa0c61fd9ab7b6fa36b62c02e3d17
This commit is contained in:
Beverly
2020-08-12 16:29:40 +00:00
committed by Automerger Merge Worker

View File

@@ -935,6 +935,7 @@ public class VolumeDialogImpl implements VolumeDialog,
protected void onStateChangedH(State state) {
if (D.BUG) Log.d(TAG, "onStateChangedH() state: " + state.toString());
if (mState != null && state != null
&& mState.ringerModeInternal != -1
&& mState.ringerModeInternal != state.ringerModeInternal
&& state.ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE) {
mController.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK));