diff options
author | Ashwini Munigala <AshwiniM@codeaurora.org> | 2014-11-10 13:25:01 +0530 |
---|---|---|
committer | Ashwini Munigala <AshwiniM@codeaurora.org> | 2014-11-10 13:25:01 +0530 |
commit | 259473669b65db48a829f61f1e7853a899bb8a70 (patch) | |
tree | f269b718604a247101e1d1e9a499a436b6365b85 /src/com/android/bluetooth/map | |
parent | 69a644f7d21227438899383a4d7a9494eb34b7a1 (diff) | |
download | android_packages_apps_Bluetooth-259473669b65db48a829f61f1e7853a899bb8a70.tar.gz android_packages_apps_Bluetooth-259473669b65db48a829f61f1e7853a899bb8a70.tar.bz2 android_packages_apps_Bluetooth-259473669b65db48a829f61f1e7853a899bb8a70.zip |
MAP: Fix sent and delivery pendingIntent updatation for pushMsg
Set unique request code for PendingIntent.getBroadcast to get
the updated info of message handle(s) for pushMsg multiple
recipients case.
Change-Id: Ib36384734a0a8d534acab4a052378ffcbb09b4b1
CRs-fixed: 749034
Diffstat (limited to 'src/com/android/bluetooth/map')
-rw-r--r-- | src/com/android/bluetooth/map/BluetoothMapContentObserver.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapContentObserver.java b/src/com/android/bluetooth/map/BluetoothMapContentObserver.java index 8160809c5..4a8caaafb 100644 --- a/src/com/android/bluetooth/map/BluetoothMapContentObserver.java +++ b/src/com/android/bluetooth/map/BluetoothMapContentObserver.java @@ -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); |