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

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

am 55dc6cb9: Disconnect even Sinks in Connecting state while connecting another sink.

Merge commit '55dc6cb9' into eclair-plus-aosp

* commit '55dc6cb9':
  Disconnect even Sinks in Connecting state while connecting another sink.
parents 85230695 55dc6cb9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -168,12 +168,12 @@ public abstract class LocalBluetoothProfileManager {

        @Override
        public Set<BluetoothDevice> getConnectedDevices() {
            return mService.getConnectedSinks();
            return mService.getNonDisconnectedSinks();
        }

        @Override
        public boolean connect(BluetoothDevice device) {
            Set<BluetoothDevice> sinks = mService.getConnectedSinks();
            Set<BluetoothDevice> sinks = mService.getNonDisconnectedSinks();
            if (sinks != null) {
                for (BluetoothDevice sink : sinks) {
                    mService.disconnectSink(sink);