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

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

Merge "Allow to preload home if it was died on top while locked" into main

parents 7b905381 2f9cc565
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -112,11 +112,11 @@ class RecentsAnimation implements RecentsAnimationCallbacks, OnRootTaskOrderChan
                mTargetActivityType);
                mTargetActivityType);
        ActivityRecord targetActivity = getTargetActivity(targetRootTask);
        ActivityRecord targetActivity = getTargetActivity(targetRootTask);
        if (targetActivity != null) {
        if (targetActivity != null) {
            if (targetActivity.attachedToProcess()) {
                if (targetActivity.isVisibleRequested() || targetActivity.isTopRunningActivity()) {
                if (targetActivity.isVisibleRequested() || targetActivity.isTopRunningActivity()) {
                    // The activity is ready.
                    // The activity is ready.
                    return;
                    return;
                }
                }
            if (targetActivity.attachedToProcess()) {
                if (targetActivity.app.getCurrentProcState() >= PROCESS_STATE_CACHED_ACTIVITY) {
                if (targetActivity.app.getCurrentProcState() >= PROCESS_STATE_CACHED_ACTIVITY) {
                    Slog.v(TAG, "Skip preload recents for cached proc " + targetActivity.app);
                    Slog.v(TAG, "Skip preload recents for cached proc " + targetActivity.app);
                    // The process may be frozen that cannot receive binder call.
                    // The process may be frozen that cannot receive binder call.