aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-06-27 17:31:09 +0900
committerJean Chalard <jchalard@google.com>2012-06-27 17:31:09 +0900
commit05efe576f976f5fa280f8d523f2935c15cbb9bd1 (patch)
tree0ba2a270431128355e5c407e42e4aa6655770b24 /java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
parentc356df8e08581f7f9f92c15031b8dc3e46e9255a (diff)
downloadlatinime-05efe576f976f5fa280f8d523f2935c15cbb9bd1.tar.gz
latinime-05efe576f976f5fa280f8d523f2935c15cbb9bd1.tar.xz
latinime-05efe576f976f5fa280f8d523f2935c15cbb9bd1.zip
Cleanup the dictionary type.
Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831
Diffstat (limited to 'java/src/com/android/inputmethod/latin/UserHistoryDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/UserHistoryDictionary.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java b/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
index 5095f6582..d14006651 100644
--- a/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
+++ b/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
@@ -128,14 +128,14 @@ public class UserHistoryDictionary extends ExpandableDictionary {
}
}
final UserHistoryDictionary dict =
- new UserHistoryDictionary(context, locale, dictTypeId, sp);
+ new UserHistoryDictionary(context, locale, sp);
sLangDictCache.put(locale, new SoftReference<UserHistoryDictionary>(dict));
return dict;
}
- private UserHistoryDictionary(final Context context, final String locale, final int dicTypeId,
- SharedPreferences sp) {
- super(context, dicTypeId);
+ private UserHistoryDictionary(final Context context, final String locale,
+ final SharedPreferences sp) {
+ super(context, Suggest.DICT_KEY_USER_HISTORY);
mLocale = locale;
mPrefs = sp;
if (sOpenHelper == null) {