aboutsummaryrefslogtreecommitdiff
path: root/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
diff options
context:
space:
mode:
Diffstat (limited to 'Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java')
-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,