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

Commit 6233ee36 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a bug with long user dict entries

Bug: 9410958
Change-Id: I966e452c6dbdcb444abbb6ffb316849a7c85a73b
parent 27d9c6f7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -76,7 +76,9 @@ public class UserDictionaryAddWordContents {
        final String word = args.getString(EXTRA_WORD);
        if (null != word) {
            mWordEditText.setText(word);
            mWordEditText.setSelection(word.length());
            // Use getText in case the edit text modified the text we set. This happens when
            // it's too long to be edited.
            mWordEditText.setSelection(mWordEditText.getText().length());
        }
        final String shortcut;
        if (UserDictionarySettings.IS_SHORTCUT_API_SUPPORTED) {