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

Commit 89a92249 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

Change-Id: I5dc1ba9038d4f536397d5ac76f83b5925e1b087c
parents 89858c58 bc26a90b
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) {