diff --git a/src/com/android/launcher3/ExtendedEditText.java b/src/com/android/launcher3/ExtendedEditText.java index 8eab3e3435..ec26f5849c 100644 --- a/src/com/android/launcher3/ExtendedEditText.java +++ b/src/com/android/launcher3/ExtendedEditText.java @@ -162,6 +162,15 @@ public class ExtendedEditText extends EditText { } } + @Override + public void setText(CharSequence text, BufferType type) { + super.setText(text, type); + // With hardware keyboard, there is a possibility that the user types before edit + // text is visible during the transition. + // So move the cursor to the end of the text. + setSelection(getText().length()); + } + /** * This method should be preferred to {@link #setOnFocusChangeListener(OnFocusChangeListener)}, * as it allows for multiple listeners from different sources.