Merge "Don't allow connection to profiles in TURNING_OFF state." into froyo
This commit is contained in:
committed by
Android (Google) Code Review
commit
d1a95f975b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user