mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Return a value for tests instead of saving it
Change-Id: I54fa32b92e89d03a53866bd1c0ee65955dd6b3d3
This commit is contained in:
parent
0f1efae262
commit
32c181bfe0
@ -47,7 +47,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) {
|
||||
@ -63,6 +63,7 @@ public class AutoCorrection {
|
||||
mHasAutoCorrection = true;
|
||||
mAutoCorrectionWord = suggestions.get(0);
|
||||
}
|
||||
return mAutoCorrectionWord;
|
||||
}
|
||||
|
||||
public static boolean isValidWord(
|
||||
|
Loading…
x
Reference in New Issue
Block a user