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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user