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

Commit 3fff156e authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 18b055e1: Merge "Pass surface insets from window attributes rather than params" into lmp-mr1-dev

* commit '18b055e1':
  Pass surface insets from window attributes rather than params
parents 9f07eb35 18b055e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1746,8 +1746,8 @@ public final class ViewRootImpl implements ViewParent,
                if (hwInitialized ||
                        mWidth != mAttachInfo.mHardwareRenderer.getWidth() ||
                        mHeight != mAttachInfo.mHardwareRenderer.getHeight()) {
                    final Rect surfaceInsets = params != null ? params.surfaceInsets : null;
                    mAttachInfo.mHardwareRenderer.setup(mWidth, mHeight, surfaceInsets);
                    mAttachInfo.mHardwareRenderer.setup(
                            mWidth, mHeight, mWindowAttributes.surfaceInsets);
                    if (!hwInitialized) {
                        mAttachInfo.mHardwareRenderer.invalidate(mSurface);
                        mFullRedrawNeeded = true;