Merge "Add FLAG_UPDATE_CURRENT flag when creating app bubble pending intent" into udc-dev

This commit is contained in:
Steven Ng
2023-04-14 08:39:34 +00:00
committed by Android (Google) Code Review

View File

@@ -246,7 +246,7 @@ public class BubbleExpandedView extends LinearLayout {
mBubble.getAppBubbleIntent()
.addFlags(FLAG_ACTIVITY_NEW_DOCUMENT)
.addFlags(FLAG_ACTIVITY_MULTIPLE_TASK),
PendingIntent.FLAG_IMMUTABLE,
PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT,
/* options= */ null);
mTaskView.startActivity(pi, /* fillInIntent= */ null, options,
launchBounds);