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

Commit 36ba0f34 authored by Louis Chang's avatar Louis Chang Committed by Automerger Merge Worker
Browse files

Merge "Remove unnecessary check and prevent unnecessary log" into tm-dev am: 8670fcdf

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

Change-Id: I1555ee2ec630a98b169d7ee67924678994ceff25
parents 2930154a 8670fcdf
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -2687,11 +2687,8 @@ class ActivityStarter {
                // launched into the same root task.
                mTargetRootTask = Task.fromWindowContainerToken(mSourceRecord.mLaunchRootTask);
            } else {
                final Task rootTask =
                        getOrCreateRootTask(mStartActivity, mLaunchFlags, intentTask, mOptions);
                // TODO(b/184806710): #getOrCreateRootTask should never return null?
                mTargetRootTask =
                        rootTask != null ? rootTask : intentActivity.getRootTask();
                mTargetRootTask = getOrCreateRootTask(mStartActivity, mLaunchFlags, intentTask,
                        mOptions);
            }
        }

+1 −1
Original line number Diff line number Diff line
@@ -2754,7 +2754,7 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
        // First preference goes to the launch root task set in the activity options.
        if (options != null) {
            final Task candidateRoot = Task.fromWindowContainerToken(options.getLaunchRootTask());
            if (canLaunchOnDisplay(r, candidateRoot)) {
            if (candidateRoot != null && canLaunchOnDisplay(r, candidateRoot)) {
                return candidateRoot;
            }
        }