Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fbdd17f authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

No vibrate on initial ringer setting

Don't vibrate the device when the initial ringer
state is set (ie: mState.ringerModeInternal = -1)

Fixes: 160919337
Test: manual
  1. Set ringer to vibrate
  2. Restart device
  3. Observe: when device boots up, no vibration from ringer
Change-Id: Id9bcc00731ac166c104d9fd8aa9fa02c70cad70f
parent d56bfed6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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));