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

Commit e0a66e79 authored by Pradeep Panigrahi's avatar Pradeep Panigrahi
Browse files

Blueototh: MAP: Validate Parameter mask before setting date in msglisting

Add change to validate the parameter mask passed, before including the
date value in the message listing object.

Change-Id: I3cf1c4f144eb8240161924f7c0cf63bca4ae7fce
CRs-fixed: 605599
parent 8e23d5c3
Loading
Loading
Loading
Loading
+22 −20
Original line number Diff line number Diff line
@@ -729,6 +729,7 @@ public class BluetoothMapContent {

    private void setDateTime(BluetoothMapMessageListingElement e, Cursor c,
        FilterInfo fi, BluetoothMapAppParams ap) {
        if ((ap.getParameterMask() & MASK_DATETIME) != 0) {
            long date = 0;
            int timeStamp = 0;

@@ -752,6 +753,7 @@ public class BluetoothMapContent {
            }
            e.setDateTime(date);
        }
    }

    private String getTextPartsMms(long id) {
        String text = "";