am 69db986c: am e6fee18d: Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it\'s removed." into ics-mr0

* commit '69db986cf01c74094747f82758e229da9f007a74':
  Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed.
This commit is contained in:
satok
2011-10-14 11:23:48 -07:00
committed by Android Git Automerger

View File

@@ -7720,8 +7720,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;