Disconnect even Sinks in Connecting state while connecting another sink.
We can hit this more when using a Car Dock Bug: 2133530 Dr No: Eastham
This commit is contained in:
@@ -168,12 +168,12 @@ public abstract class LocalBluetoothProfileManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<BluetoothDevice> getConnectedDevices() {
|
public Set<BluetoothDevice> getConnectedDevices() {
|
||||||
return mService.getConnectedSinks();
|
return mService.getNonDisconnectedSinks();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean connect(BluetoothDevice device) {
|
public boolean connect(BluetoothDevice device) {
|
||||||
Set<BluetoothDevice> sinks = mService.getConnectedSinks();
|
Set<BluetoothDevice> sinks = mService.getNonDisconnectedSinks();
|
||||||
if (sinks != null) {
|
if (sinks != null) {
|
||||||
for (BluetoothDevice sink : sinks) {
|
for (BluetoothDevice sink : sinks) {
|
||||||
mService.disconnectSink(sink);
|
mService.disconnectSink(sink);
|
||||||
|
Reference in New Issue
Block a user