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

Commit 1522691e authored by John Spurlock's avatar John Spurlock
Browse files

Ringer: Use internal ringer mode when determining vibration.

Bug: 17884168
Change-Id: I0aca94c0637db894dfc4b01d7e280b252394c69a
parent 0d725fbe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ final class Ringer extends CallsManagerListenerBase {

    private boolean shouldVibrate(Context context) {
        AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
        int ringerMode = audioManager.getRingerMode();
        int ringerMode = audioManager.getRingerModeInternal();
        if (getVibrateWhenRinging(context)) {
            return ringerMode != AudioManager.RINGER_MODE_SILENT;
        } else {