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

Commit 5475aebf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "MAP: Fix sent and delivery pendingIntent updatation for pushMsg"

parents 6d463247 25947366
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1045,13 +1045,13 @@ public class BluetoothMapContentObserver {
            Intent intent;
            intent = new Intent(ACTION_MESSAGE_DELIVERY, null);
            intent.putExtra("HANDLE", msgInfo.id);
            deliveryIntents.add(PendingIntent.getBroadcast(mContext, 0, intent,
                PendingIntent.FLAG_UPDATE_CURRENT));
            deliveryIntents.add(PendingIntent.getBroadcast(mContext,(int)System.currentTimeMillis(),
                intent, PendingIntent.FLAG_UPDATE_CURRENT));

            intent = new Intent(ACTION_MESSAGE_SENT, null);
            intent.putExtra("HANDLE", msgInfo.id);
            sentIntents.add(PendingIntent.getBroadcast(mContext, 0, intent,
                PendingIntent.FLAG_UPDATE_CURRENT));
            sentIntents.add(PendingIntent.getBroadcast(mContext, (int)System.currentTimeMillis(),
                intent,PendingIntent.FLAG_UPDATE_CURRENT));
        }

        Log.d(TAG, "sendMessage to " + msgInfo.phone);