aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-07-31 18:56:08 +0900
committerSatoshi Kataoka <satok@google.com>2013-07-31 19:22:11 +0900
commit1439130442f099ebc898856cb8e505e8b5ae976e (patch)
treef2256205624c308bca2b8eeff53fc110f6b671e8 /java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java
parentacb3cc74736342be10b4cbc9339eda383bc34a01 (diff)
downloadlatinime-1439130442f099ebc898856cb8e505e8b5ae976e.tar.gz
latinime-1439130442f099ebc898856cb8e505e8b5ae976e.tar.xz
latinime-1439130442f099ebc898856cb8e505e8b5ae976e.zip
Refactor the user history dictionary
Bug: 9429906 Bug: 4192129 Change-Id: If53bc3220627802d82ab7c396d0aabdb658573fa
Diffstat (limited to 'java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java b/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java
index 38987b6e3..100abf5db 100644
--- a/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java
+++ b/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java
@@ -26,8 +26,16 @@ import android.content.SharedPreferences;
* cancellation or manual picks. This allows the keyboard to adapt to the typist over time.
*/
public class UserHistoryPredictionDictionary extends PersonalizationPredictionDictionary {
+ private static final String TAG = UserHistoryPredictionDictionary.class.getSimpleName();
+ private static final String NAME = UserHistoryPredictionDictionary.class.getSimpleName();
+
/* package */ UserHistoryPredictionDictionary(final Context context, final String locale,
final SharedPreferences sp) {
super(context, locale, sp, Dictionary.TYPE_USER_HISTORY);
}
+
+ @Override
+ protected String getDictionaryFileName() {
+ return NAME + "." + getLocale() + ".dict";
+ }
}