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

Commit 3134c937 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "Intersect task with stack bounds for dimming" into nyc-dev am: c28230cf

am: 03f3822f

* commit '03f3822f':
  Intersect task with stack bounds for dimming

Change-Id: Ibd1baebd6ccc1487a6e90ed3f6edf68ae9586485
parents 48041bea 03f3822f
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -498,7 +498,15 @@ class Task implements DimLayer.DimLayerUser {
                return;
            }

            if (!mFullscreen) {
                // When minimizing the docked stack when going home, we don't adjust the task bounds
                // so we need to intersect the task bounds with the stack bounds here.
                mStack.getBounds(mTmpRect);
                mTmpRect.intersect(mBounds);
                out.set(mTmpRect);
            } else {
                out.set(mBounds);
            }
            return;
        }