Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ff90cf2 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22870 into eclair

* changes:
  Set Routing to A2DP only when state is Connected.
parents 4d5b4225 78333dd7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1381,7 +1381,8 @@ public class AudioService extends IAudioService.Stub {
                            address);
                    mConnectedDevices.remove(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP);
                } else if (!isConnected &&
                           (state == BluetoothA2dp.STATE_CONNECTED || state != BluetoothA2dp.STATE_PLAYING)){
                             (state == BluetoothA2dp.STATE_CONNECTED ||
                              state == BluetoothA2dp.STATE_PLAYING)) {
                    AudioSystem.setDeviceConnectionState(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP,
                                                         AudioSystem.DEVICE_STATE_AVAILABLE,
                                                         address);