diff options
author | 2013-08-26 18:50:22 +0900 | |
---|---|---|
committer | 2013-08-26 18:50:22 +0900 | |
commit | 6e04d6593239e841f5dac0d3f32d613967c11e22 (patch) | |
tree | 5568e1647c4c00edfa5d7948ce0274da79a6cee8 /java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java | |
parent | b2f586b9d66fb653d233051c08a22f42b06374e0 (diff) | |
download | latinime-6e04d6593239e841f5dac0d3f32d613967c11e22.tar.gz latinime-6e04d6593239e841f5dac0d3f32d613967c11e22.tar.xz latinime-6e04d6593239e841f5dac0d3f32d613967c11e22.zip |
Make DynamicPred...Base extend ExpandableBinaryDictionary.
Bug: 6669677
Change-Id: I06afad35d3eb73510c34d10cd4116f5bcf934f7c
Diffstat (limited to 'java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java b/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java index 76e48c744..b140c919b 100644 --- a/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java +++ b/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java @@ -31,11 +31,10 @@ public class UserHistoryPredictionDictionary extends DynamicPredictionDictionary UserHistoryPredictionDictionary.class.getSimpleName(); /* package */ UserHistoryPredictionDictionary(final Context context, final String locale, final SharedPreferences sp) { - super(context, locale, sp, Dictionary.TYPE_USER_HISTORY); + super(context, locale, sp, Dictionary.TYPE_USER_HISTORY, getDictionaryFileName(locale)); } - @Override - protected String getDictionaryFileName() { - return NAME + "." + getLocale() + ExpandableBinaryDictionary.DICT_FILE_EXTENSION; + private static String getDictionaryFileName(final String locale) { + return NAME + "." + locale + ExpandableBinaryDictionary.DICT_FILE_EXTENSION; } } |