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