diff options
author | Vadivel Thekkamalai <c_vthekk@codeaurora.org> | 2014-07-08 16:57:44 -0700 |
---|---|---|
committer | Vadivel Thekkamalai <vthekk@codeaurora.org> | 2014-07-08 17:06:17 -0700 |
commit | 8bfd634170aed9c7e220dfed685a9e26af80d51a (patch) | |
tree | d7317ca52086a9aff458d8ec0ccc1142ba5ed3d2 /src | |
parent | dcab7d3674bc83bd8d466f46910e9eb11c61d077 (diff) | |
download | android_packages_apps_BluetoothExt-8bfd634170aed9c7e220dfed685a9e26af80d51a.tar.gz android_packages_apps_BluetoothExt-8bfd634170aed9c7e220dfed685a9e26af80d51a.tar.bz2 android_packages_apps_BluetoothExt-8bfd634170aed9c7e220dfed685a9e26af80d51a.zip |
Bluetooth: 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: I0379fd2e83685faa28dc258f9c792b23fc17c857
Diffstat (limited to 'src')
-rw-r--r-- | src/org/codeaurora/bluetooth/pbapclient/BluetoothPbapRequestPullVcardEntry.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/codeaurora/bluetooth/pbapclient/BluetoothPbapRequestPullVcardEntry.java b/src/org/codeaurora/bluetooth/pbapclient/BluetoothPbapRequestPullVcardEntry.java index 8499e08..90414ad 100644 --- a/src/org/codeaurora/bluetooth/pbapclient/BluetoothPbapRequestPullVcardEntry.java +++ b/src/org/codeaurora/bluetooth/pbapclient/BluetoothPbapRequestPullVcardEntry.java @@ -83,7 +83,7 @@ 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"); |