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

Commit 1a87ba46 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Bug 5255124: Move cursor to the end of a word after correction popup alternates selection

Change-Id: Idd3edc72edf864f256df173bcf643163192ecbde
parent 02ea7d48
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9901,6 +9901,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                                    suggestionSpansFlags[i]);
                        }
                    }
                    
                    // Move cursor at the end of the replacement word
                    Selection.setSelection(editable, spanEnd + lengthDifference);
                }
            }
            hide();