Merge "Fix bug #5252977 TextView selection handles appearing in a weird state"

This commit is contained in:
Fabrice Di Meglio
2011-09-07 14:54:55 -07:00
committed by Android (Google) Code Review

View File

@@ -9555,6 +9555,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
public void dismiss() {
super.dismiss();
TextView.this.getPositionListener().removeSubscriber(SuggestionsPopupWindow.this);
if ((mText instanceof Editable) && mSuggestionRangeSpan != null) {
((Editable) mText).removeSpan(mSuggestionRangeSpan);
}