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

Commit 954325ed authored by Gilles Debunne's avatar Gilles Debunne
Browse files

TextView's display list updated on layout

Bug 5903021

We need to invalidate the DL at anytime the layout is changed.

Change-Id: Ief06c988b88cdf1b35fe8ce9bac1243326ea44c4
parent 61bd3396
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6795,6 +6795,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }
    }

    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
        if (changed) mTextDisplayListIsValid = false;
    }

    /**
     * Returns true if anything changed.
     */