Merge "Add NEW_TASK flag to Quickstep App Widget activity start" into sc-dev

This commit is contained in:
TreeHugger Robot 2021-05-04 22:33:44 +00:00 committed by Android (Google) Code Review
commit 4d5c733411
1 changed files with 1 additions and 0 deletions

View File

@ -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);