mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Do not use contacts for bigram prediction.
bug: 4346034 Change-Id: Ibc3c27ca92ed61f1f689df3e90e2eb60fa0cbd33
This commit is contained in:
parent
1123bcaf2e
commit
4556de4b45
@ -95,6 +95,14 @@ public class ContactsDictionary extends ExpandableDictionary {
|
||||
mLastLoadedContacts = SystemClock.uptimeMillis();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getBigrams(final WordComposer codes, final CharSequence previousWord,
|
||||
final WordCallback callback) {
|
||||
// Do not return bigrams from Contacts when nothing was typed.
|
||||
if (codes.size() <= 0) return;
|
||||
super.getBigrams(codes, previousWord, callback);
|
||||
}
|
||||
|
||||
private void addWords(Cursor cursor) {
|
||||
clearDictionary();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user