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

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

Merge \"Access internal ringer mode to properly vibrate in DND am: dcbdc0df\" into nyc-mr1-dev

am: 15bfd442

Change-Id: If800b9da1b29f7e72b1110395fc8d6fec5ed03ee
parents 5cd3e839 15bfd442
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) {