From 0d70bcc821c22f7001b66f4c7b83842661b8391e Mon Sep 17 00:00:00 2001 From: Yuichiro Hanada Date: Fri, 16 Aug 2013 14:17:09 +0900 Subject: Limit the number of waiting UpdateBinaryTask to at most 1. Change-Id: Ia588d8f29ab58983ea5321ff8c63ad273c33eab3 --- .../latin/personalization/UserHistoryPredictionDictionary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/personalization/UserHistoryPredictionDictionary.java') 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); -- cgit v1.2.3-83-g751a