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

Commit 9a753af2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Consider only the top most stacks for visibility test"

parents 1dd3f35b f3deb948
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -208,6 +208,8 @@ public class SystemServicesProxy {
     *
     * @param isHomeStackVisible if provided, will return whether the home stack is visible
     *                           regardless of the recents visibility
     *
     * TODO(winsonc): Refactor this check to just use the recents activity lifecycle
     */
    public boolean isRecentsActivityVisible(MutableBoolean isHomeStackVisible) {
        if (mIam == null) return false;
@@ -222,13 +224,13 @@ public class SystemServicesProxy {
                final WindowConfiguration winConfig = stackInfo.configuration.windowConfiguration;
                final int activityType = winConfig.getActivityType();
                final int windowingMode = winConfig.getWindowingMode();
                if (activityType == ACTIVITY_TYPE_HOME) {
                if (homeStackInfo == null && activityType == ACTIVITY_TYPE_HOME) {
                    homeStackInfo = stackInfo;
                } else if (activityType == ACTIVITY_TYPE_STANDARD
                } else if (fullscreenStackInfo == null && activityType == ACTIVITY_TYPE_STANDARD
                        && (windowingMode == WINDOWING_MODE_FULLSCREEN
                            || windowingMode == WINDOWING_MODE_SPLIT_SCREEN_SECONDARY)) {
                    fullscreenStackInfo = stackInfo;
                } else if (activityType == ACTIVITY_TYPE_RECENTS) {
                } else if (recentsStackInfo == null && activityType == ACTIVITY_TYPE_RECENTS) {
                    recentsStackInfo = stackInfo;
                }
            }