Merge "Add NEW_TASK flag to Quickstep App Widget activity start" into sc-dev am: 4d5c733411

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14425541

Change-Id: I40f6a3955cbbf9b8e5bb599c03ac75fcd33b0bd1
This commit is contained in:
TreeHugger Robot authored and Automerger Merge Worker committed 2021-05-04 22:39:30 +00:00
commit 7b53c1edbe
1 file changed
+1
@@ -50,6 +50,7 @@ class QuickstepInteractionHandler implements RemoteViews.InteractionHandler {
Pair<Intent, ActivityOptions> options = remoteResponse.getLaunchOptions(hostView);
ActivityOptionsWrapper activityOptions = mLauncher.getAppTransitionManager()
.getActivityLaunchOptions(mLauncher, hostView);
activityOptions.options.setPendingIntentLaunchFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Object itemInfo = hostView.getTag();
if (itemInfo instanceof ItemInfo) {
mLauncher.addLaunchCookie((ItemInfo) itemInfo, activityOptions.options);