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

Merge commit '9e82d359bcc22d1acd2eae5d7d183168cdfbf761' into kraken

* commit '9e82d359bcc22d1acd2eae5d7d183168cdfbf761':
  Don't allow connection to profiles in TURNING_OFF state.
This commit is contained in:
Jaikumar Ganesh
2010-04-08 10:12:57 -07:00
committed by Android Git Automerger

View File

@@ -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,