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

Commit 8278d541 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Access internal ringer mode to properly vibrate in DND am: dcbdc0df am: bc26a90b

am: 89a92249

Change-Id: Ia664f098a5d921bee375a5f24fc0d59ba47c129f
parents abcc4392 89a92249
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -487,7 +487,7 @@ public class VibratorService extends IVibratorService.Stub

    private boolean shouldVibrateForRingtone() {
        AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
        int ringerMode = audioManager.getRingerMode();
        int ringerMode = audioManager.getRingerModeInternal();
        // "Also vibrate for calls" Setting in Sound
        if (Settings.System.getInt(
                mContext.getContentResolver(), Settings.System.VIBRATE_WHEN_RINGING, 0) != 0) {