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

Commit c2b16e14 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Make fullscreen stack visible if it has visible behind activity"

parents 671e581e cff4aa35
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,13 @@ final class ActivityStack {
        final ActivityStack focusedStack = mStackSupervisor.getFocusedStack();
        final int focusedStackId = focusedStack.mStackId;

        if (mStackId == FULLSCREEN_WORKSPACE_STACK_ID
                && hasVisibleBehindActivity() && focusedStackId == HOME_STACK_ID) {
            // The fullscreen stack should be visible if it has a visible behind activity behind
            // the home stack that will be translucent.
            return true;
        }

        if (mStackId == DOCKED_STACK_ID) {
            // Docked stack is always visible, except in the case where the home activity
            // is the top running activity in the focused home stack.