Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5373c46 authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Do not add the noDisplay activity to source task" into main

parents d42e0182 036fce18
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2759,10 +2759,7 @@ class ActivityStarter {
            mInTask = null;
            // Launch ResolverActivity in the source task, so that it stays in the task bounds
            // when in freeform workspace.
            // Also put noDisplay activities in the source task. These by itself can be placed
            // in any task/root-task, however it could launch other activities like
            // ResolverActivity, and we want those to stay in the original task.
            if ((mStartActivity.isResolverOrDelegateActivity() || mStartActivity.noDisplay)
            if (mStartActivity.isResolverOrDelegateActivity()
                    && mSourceRecord != null && mSourceRecord.inFreeformWindowingMode()) {
                mAddingToTask = true;
            }