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

Commit 2e85274d authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Invalidate text display list when text properties change.

Bug 5887530, Bug 5945886, Bug 5904371

Added more invalidation when other properties of the text are changed.

Change-Id: I618dbaae9da64bf72dd29e444215b7de1c644573
parent dc210ade
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1205,6 +1205,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            if (imm != null) imm.restartInput(this);
        }

        mTextDisplayListIsValid = false;
        prepareCursorControllers();

        // start or stop the cursor blinking as appropriate
@@ -2310,6 +2311,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    public void setHighlightColor(int color) {
        if (mHighlightColor != color) {
            mHighlightColor = color;
            mTextDisplayListIsValid = false;
            invalidate();
        }
    }
@@ -2330,6 +2332,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        mShadowDx = dx;
        mShadowDy = dy;

        mTextDisplayListIsValid = false;
        invalidate();
    }

@@ -2821,6 +2824,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            }
        }
        if (inval) {
            mTextDisplayListIsValid = false;
            invalidate();
        }
    }