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

Commit 0dbec5f4 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android Git Automerger
Browse files

am 9e82d359: am d1a95f97: Merge "Don\'t allow connection to profiles in...

am 9e82d359: am d1a95f97: Merge "Don\'t allow connection to profiles in TURNING_OFF state." into froyo

Merge commit '9e82d359' into kraken

* commit '9e82d359':
  Don't allow connection to profiles in TURNING_OFF state.
parents ec472da7 9e82d359
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -313,6 +313,8 @@ public class BluetoothA2dpService extends IBluetoothA2dp.Stub {
                                                "Need BLUETOOTH_ADMIN permission");
        if (DBG) log("connectSink(" + device + ")");

        if (!mBluetoothService.isEnabled()) return false;

        // ignore if there are any active sinks
        if (lookupSinksMatchingStates(new int[] {
                BluetoothA2dp.STATE_CONNECTING,