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

Commit c852e5b8 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "MAP: Fix to handle crash when transparent flag is set." am: 72807295 am: 09eea142

am: 307d6048

Change-Id: I80387ca6cd383c3516a0081948c101a9ad159950
parents 6012c684 307d6048
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3224,7 +3224,7 @@ public class BluetoothMapContentObserver {
                }

                if (msgInfo.partsSent == msgInfo.parts) {
                    actionMessageSent(context, intent, msgInfo);
                    actionMessageSent(context, intent, msgInfo, handle);
                }
            } else if (action.equals(ACTION_MESSAGE_DELIVERY)) {
                long timestamp = intent.getLongExtra(EXTRA_MESSAGE_SENT_TIMESTAMP, 0);
@@ -3237,7 +3237,8 @@ public class BluetoothMapContentObserver {
            }
        }

        private void actionMessageSent(Context context, Intent intent, PushMsgInfo msgInfo) {
        private void actionMessageSent(
                Context context, Intent intent, PushMsgInfo msgInfo, long handle) {
            /* As the MESSAGE_SENT intent is forwarded from the MAP service, we use the intent
             * to carry the result, as getResult() will not return the correct value.
             */
@@ -3297,7 +3298,9 @@ public class BluetoothMapContentObserver {
                }

                /* Delete from DB */
                mResolver.delete(msgInfo.uri, null, null);
                Uri msgUri = ContentUris.withAppendedId(Sms.CONTENT_URI, handle);
                int nRows = mResolver.delete(msgUri, null, null);
                if (V && nRows > 0) Log.v(TAG, "Deleted message with Uri = " + msgUri);
            }
        }