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

Commit 0f632046 authored by Chris Craik's avatar Chris Craik
Browse files

Query outline on background size change

Background bounds are updated out of sync with View bounds, so query
as they change.

Change-Id: I9c94df17bac42dfcd4bb93b31903b59ebb58204b
parent 5e458dd6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14996,6 +14996,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (mBackgroundSizeChanged) {
            background.setBounds(0, 0,  mRight - mLeft, mBottom - mTop);
            mBackgroundSizeChanged = false;
            invalidateOutline();
        }
        // Attempt to use a display list if requested.
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ public:
            , mType(kOutlineType_None)
            , mRadius(0) {}

    void setRoundRect(int left, int top, int right, int bottom, int radius) {
    void setRoundRect(int left, int top, int right, int bottom, float radius) {
        mType = kOutlineType_RoundRect;
        mBounds.set(left, top, right, bottom);
        mRadius = radius;