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

Commit 636de751 authored by Beverly's avatar Beverly
Browse files

Haptic feedback when ringer set to vibrate

Test: manual
Change-Id: Iaf889f2ee313cc9f16b361928ab8b62a41ef277a
Fixes: 70937425
parent d3905e65
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -410,6 +410,7 @@ public class VolumeDialogImpl implements VolumeDialog {
            final boolean hasVibrator = mController.hasVibrator();
            if (mState.ringerModeInternal == AudioManager.RINGER_MODE_NORMAL) {
                if (hasVibrator) {
                    mController.vibrate();
                    mController.setRingerMode(AudioManager.RINGER_MODE_VIBRATE, false);
                } else {
                    mController.setRingerMode(AudioManager.RINGER_MODE_SILENT, false);