diff options
author | Rupesh Tatiya <rtatiya@codeaurora.org> | 2015-11-26 17:08:49 +0530 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2016-03-22 00:14:11 +0100 |
commit | a8ad0bd883b602a22b802c19b47c9cf51e42830d (patch) | |
tree | 144b9c99b7b96077a166e33957a0006209cdf7f6 /fmapp2/src/com | |
parent | 63e7e75a2f4595d1dc9f9c72619a27e3adf07487 (diff) | |
download | android_hardware_qcom_fm-a8ad0bd883b602a22b802c19b47c9cf51e42830d.tar.gz android_hardware_qcom_fm-a8ad0bd883b602a22b802c19b47c9cf51e42830d.tar.bz2 android_hardware_qcom_fm-a8ad0bd883b602a22b802c19b47c9cf51e42830d.zip |
fmapp2: de-select A2DP audio route on A2DP disconnection.
When audio is routed from wired headset to Bluetooth headset and Bluetooth
is disconnected, Audio goes to speaker instead of wired headset.
De-select Bluetooth and let audio routing policy select correct device.
CRs-Fixed: 943979
Change-Id: I4f9a446bc0dd7749e62a79c8b8531094572045f6
Diffstat (limited to 'fmapp2/src/com')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadioService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 44587e4..65b7086 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -630,6 +630,7 @@ public class FMRadioService extends Service Log.d(LOGTAG, "A2DP device is dis-connected!"); mA2dpDisconnected = true; mA2dpConnected = false; + AudioSystem.setForceUse(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_NO_BT_A2DP); } else { Log.d(LOGTAG, "A2DP device is connected!"); mA2dpDisconnected = false; |