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

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

Merge "Consolidate the embedding activity check" into sc-v2-dev

parents 6bb4d07b 1850ba18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2809,7 +2809,7 @@ class ActivityStarter {
                    false /* includingEmbeddedTask */);
            final TaskFragment taskFragment = top != null ? top.getTaskFragment() : null;
            if (taskFragment != null && taskFragment.isEmbedded()
                    && task.effectiveUid == mStartActivity.getUid()) {
                    && canEmbedActivity(taskFragment, mStartActivity, false /* newTask */, task)) {
                // Use the embedded TaskFragment of the top activity as the new parent if the
                // activity can be embedded.
                newParent = top.getTaskFragment();