diff options
author | 2015-03-16 21:18:42 +0000 | |
---|---|---|
committer | 2015-03-16 21:18:42 +0000 | |
commit | d9a711d10d209b10aeab8477a9d25bfe999b451b (patch) | |
tree | 2d63352a72efe56425c4f3c0be08e496f6cbe80f /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | f1b330c692a6c9aaa90a6009e67b2ff87842eea6 (diff) | |
parent | 4e1f0f1bb03551efde3bc6b0a8e60465c088cda2 (diff) | |
download | latinime-d9a711d10d209b10aeab8477a9d25bfe999b451b.tar.gz latinime-d9a711d10d209b10aeab8477a9d25bfe999b451b.tar.xz latinime-d9a711d10d209b10aeab8477a9d25bfe999b451b.zip |
am 4e1f0f1b: Redundant code matches multiple languages.
* commit '4e1f0f1bb03551efde3bc6b0a8e60465c088cda2':
Redundant code matches multiple languages.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 7e513e5c3..f02a63e57 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1607,15 +1607,11 @@ public final class InputLogic { // First, add the committed word to the list of suggestions. suggestions.add(committedWordString); for (final Object span : spans) { - // If this is a suggestion span, we check that the locale is the right one, and - // that the word is not the committed word. That should mostly be the case. + // If this is a suggestion span, we check that the word is not the committed word. + // That should mostly be the case. // Given this, we add it to the list of suggestions, otherwise we discard it. if (span instanceof SuggestionSpan) { final SuggestionSpan suggestionSpan = (SuggestionSpan)span; - if (!suggestionSpan.getLocale().equals( - inputTransaction.mSettingsValues.mLocale.toString())) { - continue; - } for (final String suggestion : suggestionSpan.getSuggestions()) { if (!suggestion.equals(committedWordString)) { suggestions.add(suggestion); |