Rename a method for readability (A23)
Change-Id: I6f569322e645d36bc82fddf4ec2fd621972e3b47main
parent
ea578f6b1d
commit
e398c6c024
|
@ -88,7 +88,7 @@ public class AutoCorrection {
|
|||
return !isValidWord(dictionaries, word, ignoreCase);
|
||||
}
|
||||
|
||||
public static boolean hasAutoCorrectionForBinaryDictionary(SuggestedWordInfo suggestion,
|
||||
public static boolean suggestionExceedsAutoCorrectionThreshold(SuggestedWordInfo suggestion,
|
||||
CharSequence consideredWord, float autoCorrectionThreshold) {
|
||||
if (null != suggestion) {
|
||||
//final int autoCorrectionSuggestionScore = sortedScores[0];
|
||||
|
|
|
@ -236,7 +236,7 @@ public class Suggest {
|
|||
hasAutoCorrection = true;
|
||||
} else if (suggestionsSet.isEmpty()) {
|
||||
hasAutoCorrection = false;
|
||||
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(suggestionsSet.first(),
|
||||
} else if (AutoCorrection.suggestionExceedsAutoCorrectionThreshold(suggestionsSet.first(),
|
||||
consideredWord, mAutoCorrectionThreshold)) {
|
||||
hasAutoCorrection = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue