diff options
author | Daniel Chapin <chapin@google.com> | 2020-02-12 17:16:10 +0000 |
---|---|---|
committer | Daniel Chapin <chapin@google.com> | 2020-02-12 17:16:10 +0000 |
commit | 2be6fc2afeec69943fd2e77851d48e87c6688c1c (patch) | |
tree | c15fe1fbbabdd503920de91a8322e8ee73b83361 /src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java | |
parent | dcedd7d6f58bcb267d92dd35fec6a094086eab97 (diff) |
Revert "Pass in active device to all BluetoothA2dp APIs in packa..."
Revert submission 10253996-bt-a2dp-no-null
Reason for revert: b/149361880
Reverted Changes:
If43934374: Pass in active device to all BluetoothA2dp APIs in...
I22dd1ca36: Make sure calls to BluetoothA2dp APIs pass non-nul...
If6475af6f: Require user pass in a non-null BluetoothDevice to...
I9d0e2c89c: Pass in active device to all BluetoothA2dp APIs in...
I1faa6174d: Need to now pass in active device instead of null ...
I69a941a7e: Pass in active device to all BluetoothA2dp APIs in...
Change-Id: I1d8660b11c917cf657e61478d58794182e17ec1a
Diffstat (limited to 'src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java')
-rw-r--r-- | src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java b/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java index 8eecec939a..c2977a8681 100644 --- a/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java +++ b/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java @@ -83,9 +83,9 @@ public class BluetoothCodecDialogPreferenceController extends return index; } // Check HD audio is enabled, display the available list. - if (bluetoothA2dp.isOptionalCodecsEnabled(activeDevice) + if (bluetoothA2dp.getOptionalCodecsEnabled(activeDevice) == BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) { - BluetoothCodecConfig[] configs = getSelectableConfigs(bluetoothA2dp.getActiveDevice()); + BluetoothCodecConfig[] configs = getSelectableConfigs(null); if (configs != null) { return getIndexFromConfig(configs); } @@ -101,8 +101,7 @@ public class BluetoothCodecDialogPreferenceController extends int codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; switch (index) { case 0: - codecTypeValue = getHighestCodec(getSelectableConfigs( - mBluetoothA2dp.getActiveDevice())); + codecTypeValue = getHighestCodec(getSelectableConfigs(null)); codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; break; case 1: |