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

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

Merge "Abort transition for invisible background launch" into main

parents fdc80375 fb64dbe4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1757,6 +1757,13 @@ class ActivityStarter {
            startedActivityRootTask.setAlwaysOnTop(true);
        }

        if (isIndependentLaunch && !mDoResume && avoidMoveToFront() && !mTransientLaunch
                && !started.shouldBeVisible(true /* ignoringKeyguard */)) {
            Slog.i(TAG, "Abort " + transition + " of invisible launch " + started);
            transition.abort();
            return startedActivityRootTask;
        }

        // If there is no state change (e.g. a resumed activity is reparented to top of
        // another display) to trigger a visibility/configuration checking, we have to
        // update the configuration for changing to different display.