summaryrefslogtreecommitdiffstats
path: root/java-overridable/src
diff options
context:
space:
mode:
authorJatin Matani <jatinm@google.com>2014-10-23 17:50:35 -0700
committerJatin Matani <jatinm@google.com>2014-11-13 14:21:38 -0800
commit5365191a9d850362f41eedf3f95adb5c80cceb8f (patch)
treebc518473448b34fc635af0600d28dfefc3e36b62 /java-overridable/src
parentb050b458dc1eac06412d116d6b57b849d3ccb06d (diff)
downloadandroid_packages_inputmethods_LatinIME-5365191a9d850362f41eedf3f95adb5c80cceb8f.tar.gz
android_packages_inputmethods_LatinIME-5365191a9d850362f41eedf3f95adb5c80cceb8f.tar.bz2
android_packages_inputmethods_LatinIME-5365191a9d850362f41eedf3f95adb5c80cceb8f.zip
Implement UserHistoryDictionary for each user account.
UserHistoryDictionary currently uses locale to determine the UserHistoryDictionary on the filesystem. With this change we use the account name as well. Thus each UserHistoryDictionary would following the following spec: UserHistoryDictionary.<locale>.<account>.dict. In case no account is selected, we default to the existing spec: UserHistoryDictionary.<locale>.dict Example UserHistoryDictionary.en_US.testaccount@example.com.dict Bug: 18104749 Change-Id: Iab031e166b55cf2ded68275a7e9be22475737b37
Diffstat (limited to 'java-overridable/src')
-rw-r--r--java-overridable/src/com/android/inputmethod/latin/define/ProductionFlags.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java-overridable/src/com/android/inputmethod/latin/define/ProductionFlags.java b/java-overridable/src/com/android/inputmethod/latin/define/ProductionFlags.java
index f80625644..43675682d 100644
--- a/java-overridable/src/com/android/inputmethod/latin/define/ProductionFlags.java
+++ b/java-overridable/src/com/android/inputmethod/latin/define/ProductionFlags.java
@@ -48,4 +48,10 @@ public final class ProductionFlags {
* When {@code true}, personal dictionary sync feature is ready to be enabled.
*/
public static final boolean ENABLE_PERSONAL_DICTIONARY_SYNC = ENABLE_ACCOUNT_SIGN_IN && false;
+
+ /**
+ * When {@code true}, the IME maintains per account {@link UserHistoryDictionary}.
+ */
+ public static final boolean ENABLE_PER_ACCOUNT_USER_HISTORY_DICTIONARY =
+ ENABLE_ACCOUNT_SIGN_IN && false;
}