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

Commit 63de548c authored by Louis Chang's avatar Louis Chang Committed by Automerger Merge Worker
Browse files

Merge "No need to 'addChild' when start 'FLAG_ACTIVITY_CLEAR_TOP' Activity."...

Merge "No need to 'addChild' when start 'FLAG_ACTIVITY_CLEAR_TOP' Activity." am: 5fa55ef1 am: 5c917b8f am: fad38049

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553956

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I839d7d8c25d29d740f7346ea9a4cbcc31be3a396
parents 36ba58f3 fad38049
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -2098,13 +2098,6 @@ class ActivityStarter {
            final ActivityRecord top = targetTask.performClearTaskForReuseLocked(mStartActivity,
            final ActivityRecord top = targetTask.performClearTaskForReuseLocked(mStartActivity,
                    mLaunchFlags);
                    mLaunchFlags);


            // The above code can remove {@code reusedActivity} from the task, leading to the
            // {@code ActivityRecord} removing its reference to the {@code Task}. The task
            // reference is needed in the call below to {@link setTargetStackAndMoveToFrontIfNeeded}
            if (targetTaskTop.getTask() == null) {
                targetTask.addChild(targetTaskTop);
            }

            if (top != null) {
            if (top != null) {
                if (top.isRootOfTask()) {
                if (top.isRootOfTask()) {
                    // Activity aliases may mean we use different intents for the top activity,
                    // Activity aliases may mean we use different intents for the top activity,