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

Commit 00c44045 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge "Fix surfaceInset adjustment." into nyc-dev

am: 663330a3

* commit '663330a3':
  Fix surfaceInset adjustment.

Change-Id: I648b66bc468cb7d9e48126a69ca44af3c9116614
parents e4f6677c 663330a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -829,8 +829,8 @@ class WindowStateAnimator {
        // Adjust for surface insets.
        mTmpSize.left -= scale * attrs.surfaceInsets.left;
        mTmpSize.top -= scale * attrs.surfaceInsets.top;
        mTmpSize.right += scale * (attrs.surfaceInsets.left + attrs.surfaceInsets.right);
        mTmpSize.bottom += scale * (attrs.surfaceInsets.top + attrs.surfaceInsets.bottom);
        mTmpSize.right += scale * attrs.surfaceInsets.right;
        mTmpSize.bottom += scale * attrs.surfaceInsets.bottom;
    }

    boolean hasSurface() {