diff options
author | 2013-08-16 14:17:09 +0900 | |
---|---|---|
committer | 2013-08-16 19:44:47 +0900 | |
commit | 0d70bcc821c22f7001b66f4c7b83842661b8391e (patch) | |
tree | 52eb0bbd1922c248a5d5f1a7922c178716c45633 /java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java | |
parent | ad4c90934be49e8f0327e865551814a937b4fc1f (diff) | |
download | latinime-0d70bcc821c22f7001b66f4c7b83842661b8391e.tar.gz latinime-0d70bcc821c22f7001b66f4c7b83842661b8391e.tar.xz latinime-0d70bcc821c22f7001b66f4c7b83842661b8391e.zip |
Limit the number of waiting UpdateBinaryTask to at most 1.
Change-Id: Ia588d8f29ab58983ea5321ff8c63ad273c33eab3
Diffstat (limited to 'java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java b/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java index d11784454..b8db75f90 100644 --- a/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java +++ b/java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java @@ -26,7 +26,8 @@ import android.content.SharedPreferences; * cancellation or manual picks. This allows the keyboard to adapt to the typist over time. */ public class UserHistoryPredictionDictionary extends DynamicPredictionDictionaryBase { - private static final String NAME = UserHistoryPredictionDictionary.class.getSimpleName(); + /* package for tests */ 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); |