aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorEric Fischer <enf@google.com>2009-07-28 16:48:47 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-08-13 17:27:30 -0700
commit2bed1531c2c9bd48096bfa97dd1a39e04bd15e7b (patch)
tree0f95c3c055888f56e1ef911e3ea3b7cd1288df1d /src/com/android/inputmethod/latin/LatinIME.java
parentd67fe0e7583f1be18b35b33b7658e4427f1e3ded (diff)
downloadlatinime-2bed1531c2c9bd48096bfa97dd1a39e04bd15e7b.tar.gz
latinime-2bed1531c2c9bd48096bfa97dd1a39e04bd15e7b.tar.xz
latinime-2bed1531c2c9bd48096bfa97dd1a39e04bd15e7b.zip
Have the Latin IME also use the names of your contacts as suggestions.
Bug 1597304
Diffstat (limited to 'src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java
index 5480c6780..222e0c5a2 100644
--- a/src/com/android/inputmethod/latin/LatinIME.java
+++ b/src/com/android/inputmethod/latin/LatinIME.java
@@ -103,6 +103,7 @@ public class LatinIME extends InputMethodService
KeyboardSwitcher mKeyboardSwitcher;
private UserDictionary mUserDictionary;
+ private ContactsDictionary mContactsDictionary;
private ExpandableDictionary mAutoDictionary;
private String mLocale;
@@ -188,8 +189,10 @@ public class LatinIME extends InputMethodService
mSuggest = new Suggest(this, R.raw.main);
mSuggest.setCorrectionMode(mCorrectionMode);
mUserDictionary = new UserDictionary(this);
+ mContactsDictionary = new ContactsDictionary(this);
mAutoDictionary = new AutoDictionary(this);
mSuggest.setUserDictionary(mUserDictionary);
+ mSuggest.setContactsDictionary(mContactsDictionary);
mSuggest.setAutoDictionary(mAutoDictionary);
mWordSeparators = getResources().getString(R.string.word_separators);
mSentenceSeparators = getResources().getString(R.string.sentence_separators);
@@ -197,6 +200,7 @@ public class LatinIME extends InputMethodService
@Override public void onDestroy() {
mUserDictionary.close();
+ mContactsDictionary.close();
unregisterReceiver(mReceiver);
super.onDestroy();
}