diff options
author | 2014-08-25 09:10:37 +0000 | |
---|---|---|
committer | 2014-08-25 09:10:37 +0000 | |
commit | 34439d70e2b2b14e96f8f9faff7481c67f249995 (patch) | |
tree | 0fc2b9e3a8386d18948b3c47b81845784d77de27 /java | |
parent | aa19b7d30405504a3bca7c46ab09e77cea4228b8 (diff) | |
parent | 8c7daa829a3a81b3a803048d7af82383a8b48aed (diff) | |
download | latinime-34439d70e2b2b14e96f8f9faff7481c67f249995.tar.gz latinime-34439d70e2b2b14e96f8f9faff7481c67f249995.tar.xz latinime-34439d70e2b2b14e96f8f9faff7481c67f249995.zip |
am 8c7daa82: am 02716083: am 5eebaddc: Merge "Dismiss "Add to dictionary" hint with non-special char event" into lmp-dev
* commit '8c7daa829a3a81b3a803048d7af82383a8b48aed':
Dismiss "Add to dictionary" hint with non-special char event
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 41d9bdcf7..09799334b 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -751,6 +751,13 @@ public final class InputLogic { final InputTransaction inputTransaction, // TODO: remove this argument final LatinIME.UIHandler handler) { + // In case the "add to dictionary" hint was still displayed. + // TODO: Do we really need to check if we have composing text here? + if (!mWordComposer.isComposingWord() && + mSuggestionStripViewAccessor.isShowingAddToDictionaryHint()) { + mSuggestionStripViewAccessor.dismissAddToDictionaryHint(); + } + final int codePoint = event.mCodePoint; mSpaceState = SpaceState.NONE; if (inputTransaction.mSettingsValues.isWordSeparator(codePoint) @@ -846,8 +853,6 @@ public final class InputLogic { } else { sendKeyCodePoint(settingsValues, codePoint); } - // In case the "add to dictionary" hint was still displayed. - mSuggestionStripViewAccessor.dismissAddToDictionaryHint(); } inputTransaction.setRequiresUpdateSuggestions(); } |