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

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

Change-Id: Iaa104e6356b2d78702bf6ee31ddebf0ee2d5772f
parents 10756802 dcbdc0df
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) {