Merge "Updated the Bluetooth Settings owners list"
diff --git a/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java b/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java
index 662cd70..43d25e7 100644
--- a/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java
+++ b/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java
@@ -77,6 +77,10 @@
}
@Override
+ public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
+ }
+
+ @Override
public void register(boolean listening) {
if (mBluetoothAdapter == null) {
return;
diff --git a/src/com/android/settings/bluetooth/DeviceListPreferenceFragment.java b/src/com/android/settings/bluetooth/DeviceListPreferenceFragment.java
index 0485e69..f5abc41 100644
--- a/src/com/android/settings/bluetooth/DeviceListPreferenceFragment.java
+++ b/src/com/android/settings/bluetooth/DeviceListPreferenceFragment.java
@@ -276,6 +276,9 @@
public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { }
+ @Override
+ public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { }
+
/**
* Return the key of the {@link PreferenceGroup} that contains the bluetooth devices
*/
diff --git a/src/com/android/settings/development/DevelopmentSettings.java b/src/com/android/settings/development/DevelopmentSettings.java
index 1ffee1b..62f285f 100644
--- a/src/com/android/settings/development/DevelopmentSettings.java
+++ b/src/com/android/settings/development/DevelopmentSettings.java
@@ -1895,7 +1895,7 @@
synchronized (mBluetoothA2dpLock) {
if (mBluetoothA2dp != null) {
- codecStatus = mBluetoothA2dp.getCodecStatus();
+ codecStatus = mBluetoothA2dp.getCodecStatus(null); // Use current active device
if (codecStatus != null) {
codecConfig = codecStatus.getCodecConfig();
codecsLocalCapabilities = codecStatus.getCodecsLocalCapabilities();
@@ -2123,14 +2123,14 @@
case 6:
synchronized (mBluetoothA2dpLock) {
if (mBluetoothA2dp != null) {
- mBluetoothA2dp.enableOptionalCodecs();
+ mBluetoothA2dp.enableOptionalCodecs(null); // Use current active device
}
}
return;
case 7:
synchronized (mBluetoothA2dpLock) {
if (mBluetoothA2dp != null) {
- mBluetoothA2dp.disableOptionalCodecs();
+ mBluetoothA2dp.disableOptionalCodecs(null); // Use current active device
}
}
return;
@@ -2253,7 +2253,8 @@
synchronized (mBluetoothA2dpLock) {
if (mBluetoothA2dp != null) {
- mBluetoothA2dp.setCodecConfigPreference(codecConfig);
+ // Use current active device
+ mBluetoothA2dp.setCodecConfigPreference(null, codecConfig);
}
}
}