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

Commit cff4aa35 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Make fullscreen stack visible if it has visible behind activity

Bug: 26118045
Change-Id: I76cfe0f0c08eb6b830a48143bc19479e71f78538
parent 31788966
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.