diff options
author | Sindhu Kanathur <skanat@codeaurora.org> | 2014-09-01 22:48:24 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:30:18 -0600 |
commit | 7cdfe967ff7af6e4db60b30156d9bde6958ddc6b (patch) | |
tree | 5d2b86075c68c7784d91141bcb9c3042fab2dfda /src/com/android/server/telecom/Ringer.java | |
parent | 7bcbb34fa3f752a0636015ce940dc1ad214e177e (diff) | |
download | android_packages_services_Telecomm-7cdfe967ff7af6e4db60b30156d9bde6958ddc6b.tar.gz android_packages_services_Telecomm-7cdfe967ff7af6e4db60b30156d9bde6958ddc6b.tar.bz2 android_packages_services_Telecomm-7cdfe967ff7af6e4db60b30156d9bde6958ddc6b.zip |
Telephony: Request audio focus when call state is RINGING
When call state is RINGING, request for audio focus
even though STREAM_RING volume level is Zero.
This is to mute the Music and all other audio streams
when call state is Ringing
Change-Id: Ia1aa9632d68ce30962f35e95da415a915c9f415a
CRs-Fixed: 649662
Diffstat (limited to 'src/com/android/server/telecom/Ringer.java')
-rw-r--r-- | src/com/android/server/telecom/Ringer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/server/telecom/Ringer.java b/src/com/android/server/telecom/Ringer.java index 99fb8427..5241dd0a 100644 --- a/src/com/android/server/telecom/Ringer.java +++ b/src/com/android/server/telecom/Ringer.java @@ -191,7 +191,7 @@ final class Ringer extends CallsManagerListenerBase { AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); - if (audioManager.getStreamVolume(AudioManager.STREAM_RING) > 0) { + if (audioManager.getStreamVolume(AudioManager.STREAM_RING) >= 0) { if (mState != STATE_RINGING) { Log.event(call, Log.Events.START_RINGER); mState = STATE_RINGING; |