Revert "Update facade for BluetoothCodecConfig with BluetoothCod..." am: 22e1ce1530 am: c82cffda3d am: 6fe49512a0

Original change: https://android-review.googlesource.com/c/platform/external/sl4a/+/2862774

Change-Id: I3cee25ace64aea98994a66a8e527d9a815e6cbc8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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 e3304ff..2c200d3 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.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 @@
         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 @@
             continue;
         }
         BluetoothCodecConfig codecConfig = new BluetoothCodecConfig(
-                BluetoothCodecType.createFromType(codecType),
+                codecType,
                 BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST,
                 sampleRate,
                 bitsPerSample,