Skip to content

Commit e6fee18

Browse files
satok16Android (Google) Code Review
authored andcommitted
Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed." into ics-mr0
2 parents 83e160d + 75e126f commit e6fee18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/java/android/widget/TextView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7683,8 +7683,9 @@ void spanChange(Spanned buf, Object what, int oldStart, int newStart, int oldEnd
76837683
}
76847684
}
76857685

7686-
if (what instanceof UpdateAppearance ||
7687-
what instanceof ParagraphStyle) {
7686+
if (what instanceof UpdateAppearance || what instanceof ParagraphStyle
7687+
|| (what instanceof SuggestionSpan && (((SuggestionSpan)what).getFlags()
7688+
& SuggestionSpan.FLAG_AUTO_CORRECTION) != 0)) {
76887689
if (ims == null || ims.mBatchEditNesting == 0) {
76897690
invalidate();
76907691
mHighlightPathBogus = true;

0 commit comments

Comments
 (0)