diff options
author | Hemant Gupta <hemantg@codeaurora.org> | 2014-08-05 10:10:42 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2014-11-04 11:59:20 -0800 |
commit | aa7cf3d984e35db94f83d7409661072834ea166f (patch) | |
tree | 150842fb1bf7f262321d85bb92ebfd73312d5da3 | |
parent | 192d793d2586b620027edd5b45ff4c72a86cc7be (diff) | |
download | android_frameworks_opt_bluetooth-aa7cf3d984e35db94f83d7409661072834ea166f.tar.gz android_frameworks_opt_bluetooth-aa7cf3d984e35db94f83d7409661072834ea166f.tar.bz2 android_frameworks_opt_bluetooth-aa7cf3d984e35db94f83d7409661072834ea166f.zip |
PBAP-C: Do not disconnect pbap client session
For a dut initiated get vcard request, if the server is responding
with 'Not Acceptable' response code, do not disconnect the pbap
client session. It allows the user to do other pbap operations
without initiating pbap connection request once again.
Change-Id: I389e357f2191c6be8042779d6d4cc77fc7ff64b4
-rw-r--r-- | src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java b/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java index 009ec15..42b6692 100644 --- a/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java +++ b/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java @@ -71,7 +71,8 @@ final class BluetoothPbapRequestPullVcardEntry extends BluetoothPbapRequest { Log.v(TAG, "checkResponseCode"); if (mResponse.getCount() == 0) { - if (responseCode != ResponseCodes.OBEX_HTTP_NOT_FOUND) { + if (responseCode != ResponseCodes.OBEX_HTTP_NOT_FOUND && + responseCode != ResponseCodes.OBEX_HTTP_NOT_ACCEPTABLE) { throw new IOException("Invalid response received"); } else { Log.v(TAG, "Vcard Entry not found"); |