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

Commit 2bfc75a6 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

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

parents 4f2b0dc5 1a87ba46
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9914,6 +9914,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();