From 4e1f0f1bb03551efde3bc6b0a8e60465c088cda2 Mon Sep 17 00:00:00 2001 From: Dan Zivkovic Date: Mon, 16 Mar 2015 11:19:35 -0700 Subject: 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 --- java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java') 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); -- cgit v1.2.3-83-g751a