summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-11-10 22:04:18 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-11-10 22:04:18 -0800
commitf0691ff9990409d8d5d25642370c4959f5984a56 (patch)
tree4ed35633cd7e75cfa810e538ba6b33ff1d3e4c56
parent977b9a9f105c3ec0ebb8ad8926cdae5fbe9f41c5 (diff)
parent5cb0148dbbaa533d11317f530f5c7b9d174342dd (diff)
downloadandroid_frameworks_opt_bluetooth-f0691ff9990409d8d5d25642370c4959f5984a56.tar.gz
android_frameworks_opt_bluetooth-f0691ff9990409d8d5d25642370c4959f5984a56.tar.bz2
android_frameworks_opt_bluetooth-f0691ff9990409d8d5d25642370c4959f5984a56.zip
Merge "MAPC: Fix GetMessagelisting Request for maxlistcount value 0."
-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);
}