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

Commit 14b2b74c authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Fixing View.getBoundsOnScreen()

1. The function was not setting the initial rect properly.

bug:6462629

Change-Id: I7a832a979576fc5745794c68fb8414257efb21dd
parent 5602d023
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4676,13 +4676,13 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
        }
        RectF position = mAttachInfo.mTmpTransformRect;
        position.setEmpty();
        position.set(0, 0, mRight - mLeft, mBottom - mTop);
        if (!hasIdentityMatrix()) {
            getMatrix().mapRect(position);
        }
        position.offset(mLeft, mRight);
        position.offset(mLeft, mTop);
        ViewParent parent = mParent;
        while (parent instanceof View) {