Merge "Fix bug #5252977 TextView selection handles appearing in a weird state"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4147abcd84
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user