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

Commit 3a2bc1eb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ActivityStack: Put top activity to stopstate when device is turned off"

parents 66d36077 b4c3a67e
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1016,12 +1016,7 @@ final class ActivityStack {
                } else if (!hasVisibleBehindActivity()) {
                    // If we were visible then resumeTopActivities will release resources before
                    // stopping.
                    ActivityRecord top = topRunningActivityLocked(null);
                    if (top != null && top.equals(prev) && mService.isSleepingOrShuttingDown()){
                        Slog.d(TAG, "Top activity keeps the pause sate. top : "+top);
                    } else {
                    mStackSupervisor.mStoppingActivities.add(prev);
                    }
                    if (mStackSupervisor.mStoppingActivities.size() > 3 ||
                            prev.frontOfTask && mTaskHistory.size() <= 1) {
                        // If we already have a few activities waiting to stop,