Merge "Return a value for tests instead of saving it"

This commit is contained in:
Jean Chalard 2012-03-08 03:10:18 -08:00 committed by Android (Google) Code Review
commit 2b1280c0f0

View File

@ -45,7 +45,7 @@ public class AutoCorrection {
return mNormalizedScore;
}
public void updateAutoCorrectionStatus(Map<String, Dictionary> dictionaries,
public CharSequence updateAutoCorrectionStatus(Map<String, Dictionary> dictionaries,
WordComposer wordComposer, ArrayList<CharSequence> suggestions, int[] sortedScores,
CharSequence typedWord, double autoCorrectionThreshold, int correctionMode,
CharSequence whitelistedWord) {
@ -58,6 +58,7 @@ public class AutoCorrection {
sortedScores, typedWord, autoCorrectionThreshold)) {
mAutoCorrectionWord = suggestions.get(0);
}
return mAutoCorrectionWord;
}
public static boolean isValidWord(