commit | 82612ade72bd60d4c794692cec117c89e0c32483 | [log] [tgz] |
---|---|---|
author | RoboErik <epastern@google.com> | Mon Jun 02 10:48:51 2014 -0700 |
committer | RoboErik <epastern@google.com> | Mon Jun 02 10:48:51 2014 -0700 |
tree | 9227cb8a2dd10f61c051d5d41233c4a34ccd75ef | |
parent | deb8c89707c604d4f9f32e476a58bd10a68293ff [diff] [blame] |
Set the audio stream for phone calls This tells the system which stream to adjust volume for when the session is active. Change-Id: Ib594b70c53bb432a4e8300434006729b483078d5
diff --git a/src/com/android/telecomm/HeadsetMediaButton.java b/src/com/android/telecomm/HeadsetMediaButton.java index db34f59..6ca9b86 100644 --- a/src/com/android/telecomm/HeadsetMediaButton.java +++ b/src/com/android/telecomm/HeadsetMediaButton.java
@@ -114,6 +114,7 @@ mSession.addCallback(mSessionCallback); mSession.setFlags(MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY | MediaSession.FLAG_HANDLES_MEDIA_BUTTONS); + mSession.setPlaybackToLocal(AudioManager.STREAM_VOICE_CALL); } /**