aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-16 11:19:35 -0700
committerDan Zivkovic <zivkovic@google.com>2015-03-16 14:11:59 -0700
commit4e1f0f1bb03551efde3bc6b0a8e60465c088cda2 (patch)
treea8d71f304d8823d895a9e143552641c194546323 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
parent2321c41b5bf17661e7390b7afdcf0320fbd5f134 (diff)
downloadlatinime-4e1f0f1bb03551efde3bc6b0a8e60465c088cda2.tar.gz
latinime-4e1f0f1bb03551efde3bc6b0a8e60465c088cda2.tar.xz
latinime-4e1f0f1bb03551efde3bc6b0a8e60465c088cda2.zip
Redundant code matches multiple languages.
InputLogic should not have code that tweaks suggestion ranking based on the language of the source dictionary. Bug 19744396. Change-Id: I8c0849555e74cec1302e78da04148dedd1cddabe
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r--java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java8
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);