Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed." into ics-mr0

This commit is contained in:
satok
2011-10-14 11:15:05 -07:00
committed by Android (Google) Code Review

View File

@@ -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;