Skip to content

Commit 9b2a0f1

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Fix a bug with updating extras in a PendingIntent with an intent stack" into jb-dev
2 parents 029abfd + 501d4a5 commit 9b2a0f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4376,7 +4376,8 @@ IIntentSender getIntentSenderLocked(int type,
43764376
if (!cancelCurrent) {
43774377
if (updateCurrent) {
43784378
if (rec.key.requestIntent != null) {
4379-
rec.key.requestIntent.replaceExtras(intents != null ? intents[0] : null);
4379+
rec.key.requestIntent.replaceExtras(intents != null ?
4380+
intents[intents.length - 1] : null);
43804381
}
43814382
if (intents != null) {
43824383
intents[intents.length-1] = rec.key.requestIntent;

0 commit comments

Comments
 (0)