diff options
author | 2014-10-08 14:40:03 +0900 | |
---|---|---|
committer | 2014-10-09 17:54:58 +0900 | |
commit | bc18005948c3872a96bd3406e7dd2c722d60a013 (patch) | |
tree | dafa240dfdb28afd8f10357b7f156d0f4b1a3fb8 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 41302021d61d3c876fe3952089ff211bab0abb4e (diff) | |
download | latinime-bc18005948c3872a96bd3406e7dd2c722d60a013.tar.gz latinime-bc18005948c3872a96bd3406e7dd2c722d60a013.tar.xz latinime-bc18005948c3872a96bd3406e7dd2c722d60a013.zip |
Always show the typed word in recorrections.
Bug: 11330140
Bug: 17875601
Bug: 17623275
Change-Id: Ie4620f36f312c54c7b01b5f6cbdb0bc9171b6179
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index d21fa167a..743b570ac 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1627,7 +1627,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } @Override - public void showAddToDictionaryHint(final String word) { + public void suggestAddingToDictionary(final String word, final boolean isFromSuggestionStrip) { if (!hasSuggestionStripView()) { return; } @@ -1637,7 +1637,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } else { wordToShow = word; } - mSuggestionStripView.showAddToDictionaryHint(wordToShow); + mSuggestionStripView.showAddToDictionaryHint(wordToShow, + isFromSuggestionStrip /* shouldShowWordToSave */); } // This will show either an empty suggestion strip (if prediction is enabled) or |