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

Commit 3b04cd5c authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Gerrit Code Review
Browse files

Merge "MAP: Synchronize mMsgList to avoid extra MessageDeleted MNS event"

parents 4d285810 bc76a0e9
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -1276,6 +1276,7 @@ public class BluetoothMapContentObserver {
        boolean listChanged = false;

        Cursor c;
        synchronized(getMsgListSms()) {
            if (mMapEventReportVersion == BluetoothMapUtils.MAP_EVENT_REPORT_V10) {
                c = mResolver.query(Sms.CONTENT_URI,
                        SMS_PROJECTION_SHORT, null, null, null);
@@ -1283,7 +1284,6 @@ public class BluetoothMapContentObserver {
                c = mResolver.query(Sms.CONTENT_URI,
                        SMS_PROJECTION_SHORT_EXT, null, null, null);
            }
        synchronized(getMsgListSms()) {
            try {
                if (c != null && c.moveToFirst()) {
                    do {
@@ -1425,6 +1425,7 @@ public class BluetoothMapContentObserver {
        HashMap<Long, Msg> msgListMms = new HashMap<Long, Msg>();
        boolean listChanged = false;
        Cursor c;
        synchronized(getMsgListMms()) {
            if (mMapEventReportVersion == BluetoothMapUtils.MAP_EVENT_REPORT_V10) {
                c = mResolver.query(Mms.CONTENT_URI,
                        MMS_PROJECTION_SHORT, null, null, null);
@@ -1433,7 +1434,6 @@ public class BluetoothMapContentObserver {
                        MMS_PROJECTION_SHORT_EXT, null, null, null);
            }

        synchronized(getMsgListMms()) {
            try{
                if (c != null && c.moveToFirst()) {
                    do {