diff options
author | 2014-10-09 12:02:13 +0000 | |
---|---|---|
committer | 2014-10-09 12:02:13 +0000 | |
commit | e06fe74d99c89576761194277af3c077a7f8528e (patch) | |
tree | 9caa0770068585d7dbef3e7efd06dae772d0d1f8 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | f49a1ec120ea6cd0cf989249d9bbd2b8941a2693 (diff) | |
parent | bc18005948c3872a96bd3406e7dd2c722d60a013 (diff) | |
download | latinime-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/suggestions/SuggestionStripView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java index e40fd8800..789d549d7 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java @@ -231,8 +231,8 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick return mStripVisibilityGroup.isShowingAddToDictionaryStrip(); } - public void showAddToDictionaryHint(final String word) { - mLayoutHelper.layoutAddToDictionaryHint(word, mAddToDictionaryStrip); + public void showAddToDictionaryHint(final String word, final boolean shouldShowWordToSave) { + mLayoutHelper.layoutAddToDictionaryHint(word, mAddToDictionaryStrip, shouldShowWordToSave); // {@link TextView#setTag()} is used to hold the word to be added to dictionary. The word // will be extracted at {@link #onClick(View)}. mAddToDictionaryStrip.setTag(word); @@ -501,7 +501,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick return; } final Object tag = view.getTag(); - // {@link String} tag is set at {@link #showAddToDictionaryHint(String,CharSequence)}. + // {@link String} tag is set at {@link #suggestAddingToDictionary(String,CharSequence)}. if (tag instanceof String) { final String wordToSave = (String)tag; mListener.addWordToUserDictionary(wordToSave); |