summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnubhavGupta <anubhavg@codeaurora.org>2014-11-16 20:21:10 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-11-22 12:18:45 -0800
commit7e328b4d465fd2b5149339c1409593ef24cea095 (patch)
tree717009c03be58672c8c55f0194cf12aa459029f1
parent025d800df0efcd0881c43cde7a8cb7267e774f25 (diff)
downloadandroid_packages_apps_Bluetooth-7e328b4d465fd2b5149339c1409593ef24cea095.tar.gz
android_packages_apps_Bluetooth-7e328b4d465fd2b5149339c1409593ef24cea095.tar.bz2
android_packages_apps_Bluetooth-7e328b4d465fd2b5149339c1409593ef24cea095.zip
Bluetooth: Dont loose focus for remote suspend only in case of call
- in case of remote suspend being initiated as a result of MO/MT call, we should not abandon focus. - abandon focus in other cases of remote initiated suspend. CRs-Fixed: 761419 Change-Id: Ic2ffe4f66814188f9a6bc4e1c2fee198347e03b0
-rw-r--r--src/com/android/bluetooth/a2dp/A2dpSinkStateMachine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/a2dp/A2dpSinkStateMachine.java b/src/com/android/bluetooth/a2dp/A2dpSinkStateMachine.java
index 2f1f3d9cc..13c4ade46 100644
--- a/src/com/android/bluetooth/a2dp/A2dpSinkStateMachine.java
+++ b/src/com/android/bluetooth/a2dp/A2dpSinkStateMachine.java
@@ -619,7 +619,7 @@ final class A2dpSinkStateMachine extends StateMachine {
mPlayingDevice = null;
broadcastAudioState(device, BluetoothA2dpSink.STATE_NOT_PLAYING,
BluetoothA2dpSink.STATE_PLAYING);
- if ((mAudioFocusAcquired == AUDIO_FOCUS_LOSS_TRANSIENT) ||
+ if ((mAudioFocusAcquired == AUDIO_FOCUS_LOSS_TRANSIENT) &&
(state == AUDIO_STATE_REMOTE_SUSPEND)) {
log(" Dont't Loose audiofocus in case of suspend ");
break;