diff options
author | Eric Laurent <elaurent@google.com> | 2010-01-08 07:55:33 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-01-08 08:48:18 -0800 |
commit | 663ec308801a34de82db9ab993f0e906da690f89 (patch) | |
tree | 3d6637a050fe486d5586fde2278dd08e647899c9 /core | |
parent | 063d03ed0882582840c7db610635aa89c1a01eec (diff) | |
download | frameworks_base-663ec308801a34de82db9ab993f0e906da690f89.zip frameworks_base-663ec308801a34de82db9ab993f0e906da690f89.tar.gz frameworks_base-663ec308801a34de82db9ab993f0e906da690f89.tar.bz2 |
Fix issue 2361949: A2DP suspend parameters set wrongly.
Move reset of A2DP suspend state from handleSinkStateChange() in BluetoothA2dpService to
BluetoothA2dp.ACTION_SINK_STATE_CHANGED intent receiver in AudioService.
Previous implementation could cause a false reset of suspend state if a new sink attempted to
connect while A2DP was suspended.
New implementation only resets A2DP suspend state when a new sink is actually connected.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/server/BluetoothA2dpService.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/java/android/server/BluetoothA2dpService.java b/core/java/android/server/BluetoothA2dpService.java index 46145b9..8859339 100644 --- a/core/java/android/server/BluetoothA2dpService.java +++ b/core/java/android/server/BluetoothA2dpService.java @@ -459,10 +459,6 @@ public class BluetoothA2dpService extends IBluetoothA2dp.Stub { checkSinkSuspendState(state); mTargetA2dpState = -1; - if (state == BluetoothA2dp.STATE_CONNECTING) { - mAudioManager.setParameters("A2dpSuspended=false"); - } - if (getSinkPriority(device) > BluetoothA2dp.PRIORITY_OFF && state == BluetoothA2dp.STATE_CONNECTING || state == BluetoothA2dp.STATE_CONNECTED) { |