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

Commit 506f37ae authored by Beverly's avatar Beverly Committed by android-build-merger
Browse files

Merge "Vibrate when ringer changes to vibrate" into pi-dev

am: 730b9bd4

Change-Id: If9e8f8fc0d74c8113570273623f2e4be074d9730
parents 0abeff2d 730b9bd4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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