Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 183f8574 authored by Hemant Gupta's avatar Hemant Gupta Committed by Myles Watson
Browse files

MAP: Fix New Message status when maxListCount is 0

Precondition:
All messages in phone are already read.

Usecase:
1) Establish Map Session with Carkit.
2) Send Get MessageListing request from carkit
   with maxListCount as 0 and.>0

Issue:
MAP server sends New Message as ON in get MessageListing
response even if there are no unread messages.

Root Cause:
Incorrect Condition to check if there are unread messages.

Fix:
Corrected the condition depending on read status
for corresponding message.

Test: Checked if new messages status is properly updated to
remote carkit in above scenario.

Fixes: 72141024
Change-Id: I1d328d8681de101ce845e8af91ebdc0df663f84d
parent 9f7390ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public class BluetoothMapMessageListing {
    public void add(BluetoothMapMessageListingElement element) {
        mList.add(element);
        /* update info regarding whether the list contains unread messages */
        if (element.getReadBool()) {
        if (!element.getReadBool()) {
            mHasUnread = true;
        }
    }