Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed." into ics-mr0
This commit is contained in:
@@ -7683,8 +7683,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;
|
||||
|
||||
Reference in New Issue
Block a user