From 36c1b379144bcb7e5a46e3ffb8817075d4f73ff3 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 9 Mar 2012 21:24:40 +0900 Subject: [PATCH] Remove a useless argument Change-Id: I713433a3225193489fad5bdafcf302b529903116 --- java/src/com/android/inputmethod/latin/Suggest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 3d6d5a776..ce84a3ab2 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -454,7 +454,7 @@ public class Suggest implements Dictionary.WordCallback { autoCorrectionAvailable &= !wordComposer.isMostlyCaps(); builder.setTypedWordValid(!allowsToBeAutoCorrected).setHasMinimalSuggestion( autoCorrectionAvailable); - if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, this, mAutoCorrectionThreshold, + if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, mAutoCorrectionThreshold, !allowsToBeAutoCorrected)) { builder.setShouldBlockAutoCorrectionBySafetyNet(); } @@ -609,7 +609,7 @@ public class Suggest implements Dictionary.WordCallback { // TODO: Resolve the inconsistencies between the native auto correction algorithms and // this safety net public static boolean shouldBlockAutoCorrectionBySafetyNet( - final SuggestedWords.Builder suggestedWordsBuilder, final Suggest suggest, + final SuggestedWords.Builder suggestedWordsBuilder, final double autoCorrectionThreshold, final boolean isTypedWordValid) { // Safety net for auto correction. // Actually if we hit this safety net, it's actually a bug.