Skip to content

Commit 501d4a5

Browse files
committed
Fix a bug with updating extras in a PendingIntent with an intent stack
Change-Id: I52e2677635b588b7301dd938e1dd32f94241cf5a
1 parent 427db9b commit 501d4a5

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)