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

Commit 2180ba7a authored by Chris Craik's avatar Chris Craik
Browse files

Sync ViewOverlay size init with RenderNode

bug:18381202

Setting mRight/mBottom must be accompanied by updating the RenderNode.

Change-Id: I4dae06a5ca43247b0b3642d85808e2724e486692
parent 293f0f38
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -130,8 +130,11 @@ public class ViewOverlay {
            super(context);
            mHostView = hostView;
            mAttachInfo = mHostView.mAttachInfo;

            mRight = hostView.getWidth();
            mBottom = hostView.getHeight();
            // pass right+bottom directly to RenderNode, since not going through setters
            mRenderNode.setLeftTopRightBottom(0, 0, mRight, mBottom);
        }

        public void add(Drawable drawable) {