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

Commit 57e6f58b authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am cd3f349f: am a32efedd: am de3601e0: am bcac4960: Honor the "Never vibrate"...

am cd3f349f: am a32efedd: am de3601e0: am bcac4960: Honor the "Never vibrate" setting for incoming calls.
parents 16bd9372 cd3f349f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -601,10 +601,8 @@ public class AudioService extends IAudioService.Stub {
                return mRingerMode == AudioManager.RINGER_MODE_VIBRATE;

            case AudioManager.VIBRATE_SETTING_OFF:
                // Phone ringer should always vibrate in vibrate mode
                if (vibrateType == AudioManager.VIBRATE_TYPE_RINGER) {
                    return mRingerMode == AudioManager.RINGER_MODE_VIBRATE;
                }
                // return false, even for incoming calls
                return false;

            default:
                return false;