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

Commit 1516b90a authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Don't wait for client completePause when sleeping" into main

parents bc80bc50 13a49267
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -10355,7 +10355,9 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        }
        if (!isVisibleRequested()) {
            // TODO(b/294925498): Remove this finishing check once we have accurate ready tracking.
            if (task != null && task.getPausingActivity() == this) {
            if (task != null && task.getPausingActivity() == this
                    // Display is asleep, so nothing will be visible anyways.
                    && !mDisplayContent.isSleeping()) {
                // Visibility of starting activities isn't calculated until pause-complete, so if
                // this is not paused yet, don't consider it ready.
                return false;