summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshwini Munigala <AshwiniM@codeaurora.org>2014-04-22 17:43:17 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-11-10 07:20:51 -0800
commit5cb0148dbbaa533d11317f530f5c7b9d174342dd (patch)
tree4ed35633cd7e75cfa810e538ba6b33ff1d3e4c56
parent977b9a9f105c3ec0ebb8ad8926cdae5fbe9f41c5 (diff)
downloadandroid_frameworks_opt_bluetooth-5cb0148dbbaa533d11317f530f5c7b9d174342dd.tar.gz
android_frameworks_opt_bluetooth-5cb0148dbbaa533d11317f530f5c7b9d174342dd.tar.bz2
android_frameworks_opt_bluetooth-5cb0148dbbaa533d11317f530f5c7b9d174342dd.zip
MAPC: Fix GetMessagelisting Request for maxlistcount value 0.
Include maxlistcount for value 0 in application parameters header while composing obex GetMessageListing Request to MAP Server. Change-Id: I2776e0f0f2191ca4c11b05c451c6487f30a8fbdc CRs-fixed: 652006
-rw-r--r--src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java b/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java
index e3ecc93..b0c3ce5 100644
--- a/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java
+++ b/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java
@@ -97,9 +97,9 @@ final class BluetoothMasRequestGetMessagesListing extends BluetoothMasRequest {
oap.add(OAP_TAGID_SUBJECT_LENGTH, (byte) subjectLength);
}
- oap.add(OAP_TAGID_PARAMETER_MASK, parameters);
+ oap.add(OAP_TAGID_PARAMETER_MASK, parameters);
- if (maxListCount != 0) {
+ if (maxListCount >= 0) {
oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) maxListCount);
}