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 03:40:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-07-31 03:40:29 -0700
commite59fa27d75af760460114efe0f437733ac926759 (patch)
tree213f14f458f7025be776df0a627e067e8c0dc8d0 /java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java
parent465abf7b160f0ada3f82ca5bd19e6e97102e61be (diff)
parent3b1eb886582a6bfab63cee24323f0b139d70087f (diff)
downloadlatinime-e59fa27d75af760460114efe0f437733ac926759.tar.gz
latinime-e59fa27d75af760460114efe0f437733ac926759.tar.xz
latinime-e59fa27d75af760460114efe0f437733ac926759.zip
am 3b1eb886: Merge "Refactor the user history dictionary"
* commit '3b1eb886582a6bfab63cee24323f0b139d70087f': Refactor the user history dictionary
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";
+ }
}