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

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

am bcac4960: Honor the "Never vibrate" setting for incoming calls.

Merge commit 'bcac4960' into froyo-plus-aosp

* commit 'bcac4960':
  Honor the "Never vibrate" setting for incoming calls.
parents b0cc22b4 bcac4960
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;