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

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

Merge changes from topic "presubmit-am-f6a3dc4aa5e04877a31cf3a49c4a0612" into sc-v2-dev-plus-aosp

* changes:
  [automerge] Set the offset of the dim layer of DisplayArea. 2p: b1bd4422
  Set the offset of the dim layer of DisplayArea.
parents 0ef51972 dda43970
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -644,7 +644,9 @@ public class DisplayArea<T extends WindowContainer> extends WindowContainer<T> {
        void prepareSurfaces() {
            mDimmer.resetDimStates();
            super.prepareSurfaces();
            // Bounds need to be relative, as the dim layer is a child.
            getBounds(mTmpDimBoundsRect);
            mTmpDimBoundsRect.offsetTo(0 /* newLeft */, 0 /* newTop */);

            // If SystemUI is dragging for recents, we want to reset the dim state so any dim layer
            // on the display level fades out.