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

Commit e73a74c2 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

am: 506f37ae

Change-Id: I91ee6bad6c21c1757e340f76c4ac5f9d56f5b6ac
parents dc35e6bf 506f37ae
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