diff options
| author | Jean Chalard <jchalard@google.com> | 2011-04-26 14:08:16 +0900 |
|---|---|---|
| committer | Jean Chalard <jchalard@google.com> | 2011-04-26 15:26:51 +0900 |
| commit | 4556de4b4540b18d059759c88cd8254ae6a42fa7 (patch) | |
| tree | 5c2e4f211604e5a68fbc6a43eeeca2e787ad85f6 /java/src | |
| parent | 1123bcaf2e371fe99703e54a2716e4329016aec4 (diff) | |
Do not use contacts for bigram prediction.
bug: 4346034
Change-Id: Ibc3c27ca92ed61f1f689df3e90e2eb60fa0cbd33
Diffstat (limited to 'java/src')
| -rw-r--r-- | java/src/com/android/inputmethod/latin/ContactsDictionary.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ContactsDictionary.java b/java/src/com/android/inputmethod/latin/ContactsDictionary.java index 048f72dc5..bdb68cac7 100644 --- a/java/src/com/android/inputmethod/latin/ContactsDictionary.java +++ b/java/src/com/android/inputmethod/latin/ContactsDictionary.java @@ -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(); |
