aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-09 04:15:59 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-09 04:15:59 +0000
commita4b6edc0efcb27148062dc25d135f4dd74bee444 (patch)
treed94483e410a3a9bc6b27d8bdd1a65161c1bf8efd
parentc079bd81c2c6bf2686ae7c83390a9b35a0996aef (diff)
parent3675982bc5f835ceeeb81854ad436d889f01e1b2 (diff)
downloadsl4a-android14-qpr2-s3-release.tar.gz
Change-Id: Icd64a999aa29aeb1be3f2836e6afc007a31fd6a1
-rw-r--r--Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
index e3304ffc..2c200d3e 100644
--- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
@@ -21,7 +21,6 @@ import android.bluetooth.BluetoothA2dp;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothCodecConfig;
import android.bluetooth.BluetoothCodecStatus;
-import android.bluetooth.BluetoothCodecType;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothProfile;
import android.bluetooth.BluetoothUuid;
@@ -63,7 +62,7 @@ public class BluetoothA2dpFacade extends RpcReceiver {
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mBluetoothA2dpReceiver = new BluetoothA2dpReceiver();
mBluetoothCodecConfig = new BluetoothCodecConfig(
- null,
+ BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID,
BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
BluetoothCodecConfig.SAMPLE_RATE_NONE,
BluetoothCodecConfig.BITS_PER_SAMPLE_NONE,
@@ -259,7 +258,7 @@ public class BluetoothA2dpFacade extends RpcReceiver {
continue;
}
BluetoothCodecConfig codecConfig = new BluetoothCodecConfig(
- BluetoothCodecType.createFromType(codecType),
+ codecType,
BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST,
sampleRate,
bitsPerSample,