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

Commit 75e126f2 authored by satok's avatar satok
Browse files

Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed.

Bug: 5460262

Change-Id: I4ca71020a6d4b7057f60ca99944c479775cca8b7
parent 421648ed
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -7682,8 +7682,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            }
        }
        
        if (what instanceof UpdateAppearance ||
            what instanceof ParagraphStyle) {
        if (what instanceof UpdateAppearance || what instanceof ParagraphStyle
                || (what instanceof SuggestionSpan && (((SuggestionSpan)what).getFlags()
                        & SuggestionSpan.FLAG_AUTO_CORRECTION) != 0)) {
            if (ims == null || ims.mBatchEditNesting == 0) {
                invalidate();
                mHighlightPathBogus = true;