diff options
author | 2014-08-18 12:00:41 +0000 | |
---|---|---|
committer | 2014-08-18 12:00:41 +0000 | |
commit | 47c80605e66c9f56b30601ad5c59ffdb60636ee8 (patch) | |
tree | 01fe13bcac5185a991ffdc4f0c23613cab81010f /java | |
parent | 01e9fb5d9d957e8ecf9d1c2dba973589c00e37bc (diff) | |
parent | 8adf5e8a70a9153094d1e51587c91a96d7c5888f (diff) | |
download | latinime-47c80605e66c9f56b30601ad5c59ffdb60636ee8.tar.gz latinime-47c80605e66c9f56b30601ad5c59ffdb60636ee8.tar.xz latinime-47c80605e66c9f56b30601ad5c59ffdb60636ee8.zip |
am 8adf5e8a: Have the "add to dictionary" hint display the right word
* commit '8adf5e8a70a9153094d1e51587c91a96d7c5888f':
Have the "add to dictionary" hint display the right word
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 258f21f7c..8768e126e 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1213,13 +1213,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // Probably never supposed to happen, but just in case. return; } - final String wordToEdit; - if (CapsModeUtils.isAutoCapsMode(mInputLogic.mLastComposedWord.mCapitalizedMode)) { - wordToEdit = word.toLowerCase(getCurrentSubtypeLocale()); - } else { - wordToEdit = word; - } - mDictionaryFacilitator.addWordToUserDictionary(this /* context */, wordToEdit); + mDictionaryFacilitator.addWordToUserDictionary(this /* context */, word); } // Callback for the {@link SuggestionStripView}, to call when the important notice strip is @@ -1499,7 +1493,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (!hasSuggestionStripView()) { return; } - mSuggestionStripView.showAddToDictionaryHint(word); + final String wordToShow; + if (CapsModeUtils.isAutoCapsMode(mInputLogic.mLastComposedWord.mCapitalizedMode)) { + wordToShow = word.toLowerCase(getCurrentSubtypeLocale()); + } else { + wordToShow = word; + } + mSuggestionStripView.showAddToDictionaryHint(wordToShow); } // This will show either an empty suggestion strip (if prediction is enabled) or |