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

Commit 5780ff3e authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Check precise resumable state for task overlay" into main

parents ab4779e9 bee571de
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2540,9 +2540,7 @@ class ActivityStarter {
                if (!mOptions.canTaskOverlayResume()) {
                    final Task task = mRootWindowContainer.anyTaskForId(
                            mOptions.getLaunchTaskId());
                    final ActivityRecord top = task != null
                            ? task.getTopNonFinishingActivity() : null;
                    if (top != null && !top.isState(RESUMED)) {
                    if (task != null && !task.canBeResumed(r)) {

                        // The caller specifies that we'd like to be avoided to be moved to the
                        // front, so be it!