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

Merge commit 'e509c36f1ed3b33da223c2f7b54372b20421d317' into eclair-mr2-plus-aosp

* commit 'e509c36f1ed3b33da223c2f7b54372b20421d317':
  Disconnect even Sinks in Connecting state while connecting another sink.
This commit is contained in:
Jaikumar Ganesh
2009-12-09 15:42:25 -08:00
committed by Android Git Automerger

View File

@@ -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);