Update BT APIs for change in return type.

Change-Id: Ic85b47da50876fd6bdc6e223af4248a8586d82bc
This commit is contained in:
Jaikumar Ganesh
2010-10-18 17:14:56 -07:00
parent f8b25796f0
commit 659b39abf8
3 changed files with 17 additions and 23 deletions

View File

@@ -196,10 +196,9 @@ public class LocalBluetoothManager {
// If we are playing music, don't scan unless forced.
if (mBluetoothA2dp != null) {
Set<BluetoothDevice> sinks = mBluetoothA2dp.getConnectedDevices();
List<BluetoothDevice> sinks = mBluetoothA2dp.getConnectedDevices();
if (sinks.size() > 0) {
BluetoothDevice sink = sinks.toArray(new BluetoothDevice[sinks.size()])[0];
if (mBluetoothA2dp.isA2dpPlaying(sink)) return;
if (mBluetoothA2dp.isA2dpPlaying(sinks.get(0))) return;
}
}
}