mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 78b881bf
: Merge "Fix a bug with long user dict entries"
* commit '78b881bf5a0f67b4cbb681f64dc3ccba4f19b393': Fix a bug with long user dict entries
This commit is contained in:
commit
57eecc0476
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user