diff options
author | Qi Wang <wangqi@google.com> | 2016-04-22 21:41:04 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-04-22 21:41:04 +0000 |
commit | 7517b02d6d76c1d0fb1dcd776437d7509cb89552 (patch) | |
tree | 45e2824da519184402c1ba99630aeb81c5a8cb4a /src/com/android | |
parent | 859b4253d0bcd87ddb8a10868625294b18f5a989 (diff) | |
parent | 71f6781457dc388aca7f8443f6cad511fa8fc8a9 (diff) |
Merge "Call correct number from missing call notification." into nyc-dev
am: 71f6781
* commit '71f6781457dc388aca7f8443f6cad511fa8fc8a9':
Call correct number from missing call notification.
Change-Id: Ic0c2373af8223b7e80a98a53fc2059929945a4bb
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/dialer/calllog/MissedCallNotifier.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/MissedCallNotifier.java b/src/com/android/dialer/calllog/MissedCallNotifier.java index 98d02d095..20fc5d551 100644 --- a/src/com/android/dialer/calllog/MissedCallNotifier.java +++ b/src/com/android/dialer/calllog/MissedCallNotifier.java @@ -254,7 +254,8 @@ public class MissedCallNotifier { intent.setAction( CallLogNotificationsService.ACTION_CALL_BACK_FROM_MISSED_CALL_NOTIFICATION); intent.putExtra(CallLogNotificationsService.EXTRA_MISSED_CALL_NUMBER, number); - return PendingIntent.getService(mContext, 0, intent, 0); + // Use FLAG_ONE_SHOT to avoid reusing previous PendingIntent with different number. + return PendingIntent.getService(mContext, 0, intent, PendingIntent.FLAG_ONE_SHOT); } private PendingIntent createSendSmsFromNotificationPendingIntent(String number) { @@ -262,7 +263,8 @@ public class MissedCallNotifier { intent.setAction( CallLogNotificationsService.ACTION_SEND_SMS_FROM_MISSED_CALL_NOTIFICATION); intent.putExtra(CallLogNotificationsService.EXTRA_MISSED_CALL_NUMBER, number); - return PendingIntent.getService(mContext, 0, intent, 0); + // Use FLAG_ONE_SHOT to avoid reusing previous PendingIntent with different number. + return PendingIntent.getService(mContext, 0, intent, PendingIntent.FLAG_ONE_SHOT); } /** |