aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-10-09 12:02:13 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-09 12:02:13 +0000
commite06fe74d99c89576761194277af3c077a7f8528e (patch)
tree9caa0770068585d7dbef3e7efd06dae772d0d1f8 /java/src/com/android/inputmethod/latin/LatinIME.java
parentf49a1ec120ea6cd0cf989249d9bbd2b8941a2693 (diff)
parentbc18005948c3872a96bd3406e7dd2c722d60a013 (diff)
downloadlatinime-e06fe74d99c89576761194277af3c077a7f8528e.tar.gz
latinime-e06fe74d99c89576761194277af3c077a7f8528e.tar.xz
latinime-e06fe74d99c89576761194277af3c077a7f8528e.zip
am bc180059: Always show the typed word in recorrections.
* commit 'bc18005948c3872a96bd3406e7dd2c722d60a013': Always show the typed word in recorrections.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java5
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