Skip to content

Commit de09576

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "Cursor is moved at end of word when it is added to dictionary"
2 parents 5e1243e + 2eb70fb commit de09576

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/widget/Editor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,6 +2582,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
25822582
// There is no way to know if the word was indeed added. Re-check.
25832583
// TODO The ExtractEditText should remove the span in the original text instead
25842584
editable.removeSpan(suggestionInfo.suggestionSpan);
2585+
Selection.setSelection(editable, spanEnd);
25852586
updateSpellCheckSpans(spanStart, spanEnd, false);
25862587
} else {
25872588
// SuggestionSpans are removed by replace: save them before

0 commit comments

Comments
 (0)