mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Return a value for tests instead of saving it"
This commit is contained in:
commit
2b1280c0f0
@ -45,7 +45,7 @@ public class AutoCorrection {
|
|||||||
return mNormalizedScore;
|
return mNormalizedScore;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateAutoCorrectionStatus(Map<String, Dictionary> dictionaries,
|
public CharSequence updateAutoCorrectionStatus(Map<String, Dictionary> dictionaries,
|
||||||
WordComposer wordComposer, ArrayList<CharSequence> suggestions, int[] sortedScores,
|
WordComposer wordComposer, ArrayList<CharSequence> suggestions, int[] sortedScores,
|
||||||
CharSequence typedWord, double autoCorrectionThreshold, int correctionMode,
|
CharSequence typedWord, double autoCorrectionThreshold, int correctionMode,
|
||||||
CharSequence whitelistedWord) {
|
CharSequence whitelistedWord) {
|
||||||
@ -58,6 +58,7 @@ public class AutoCorrection {
|
|||||||
sortedScores, typedWord, autoCorrectionThreshold)) {
|
sortedScores, typedWord, autoCorrectionThreshold)) {
|
||||||
mAutoCorrectionWord = suggestions.get(0);
|
mAutoCorrectionWord = suggestions.get(0);
|
||||||
}
|
}
|
||||||
|
return mAutoCorrectionWord;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isValidWord(
|
public static boolean isValidWord(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user