am be38be94: remove the AT command separator from the CPBR range parameters
* commit 'be38be94c0a2faf3802b596be5b3ab568d6d85a4':
remove the AT command separator from the CPBR range parameters
diff --git a/src/com/android/bluetooth/hfp/AtPhonebook.java b/src/com/android/bluetooth/hfp/AtPhonebook.java
index 3f499ba..d133706 100755
--- a/src/com/android/bluetooth/hfp/AtPhonebook.java
+++ b/src/com/android/bluetooth/hfp/AtPhonebook.java
@@ -316,7 +316,8 @@
String atCommand = (atString.split("="))[1];
String[] indices = atCommand.split(",");
for(int i = 0; i < indices.length; i++)
- indices[i] = indices[i].trim();
+ //replace AT command separator ';' from the index if any
+ indices[i] = indices[i].replace(';', ' ').trim();
try {
index1 = Integer.parseInt(indices[0]);
if (indices.length == 1)
@@ -325,7 +326,7 @@
index2 = Integer.parseInt(indices[1]);
}
catch (Exception e) {
- log("handleCpbrCommand - exception - invalid chars");
+ log("handleCpbrCommand - exception - invalid chars: " + e.toString());
atCommandErrorCode = BluetoothCmeError.TEXT_HAS_INVALID_CHARS;
mStateMachine.atResponseCodeNative(atCommandResult, atCommandErrorCode);
break;