Update BT APIs for change in return type.
Change-Id: Ic85b47da50876fd6bdc6e223af4248a8586d82bc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user