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

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

Merge "Ensure DockedStackDividerController sets a dim for one stack at a time."

parents 84f5de7e 783729c1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -568,6 +568,14 @@ public class DockedStackDividerController {
                : null;
        final TaskStack dockedStack = mDisplayContent.getSplitScreenPrimaryStack();
        boolean visibleAndValid = visible && stack != null && dockedStack != null;

        // Ensure an old dim that was shown for the docked stack divider is removed so we don't end
        // up with dim layers that can no longer be removed.
        if (mDimmedStack != null && mDimmedStack != stack) {
            mDimmedStack.stopDimming();
            mDimmedStack = null;
        }

        if (visibleAndValid) {
            mDimmedStack = stack;
            stack.dim(alpha);