Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03e4d645 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

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

- a remove of a listener was missing as dismis() and hide() need to
share the same semantics

Change-Id: I01dc5a971324d0aa0942e365d5302d93a1a51a16
parent be724dbc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9485,6 +9485,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);
                }