diff options
author | 2015-03-12 17:22:37 +0000 | |
---|---|---|
committer | 2015-03-12 17:22:37 +0000 | |
commit | b724ff1d11d10da8569bba472e2d3252086047cc (patch) | |
tree | 1172623d89367a88a9ca7cc189f14c76e5943666 /java/src/com/android/inputmethod/latin/DictionaryFacilitator.java | |
parent | 2c3aae8a0cc45a5e1888d3b9d9a1a8d3779c945a (diff) | |
parent | 7e1dfaae3d6ca9aff1acfa9b358ad0b759ef0ec8 (diff) | |
download | latinime-b724ff1d11d10da8569bba472e2d3252086047cc.tar.gz latinime-b724ff1d11d10da8569bba472e2d3252086047cc.tar.xz latinime-b724ff1d11d10da8569bba472e2d3252086047cc.zip |
am 7e1dfaae: Merge "Remove ALS from LatinIME."
* commit '7e1dfaae3d6ca9aff1acfa9b358ad0b759ef0ec8':
Remove ALS from LatinIME.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryFacilitator.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/DictionaryFacilitator.java | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java index b65888997..5f981a009 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java +++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java @@ -72,11 +72,11 @@ public interface DictionaryFacilitator { Dictionary.TYPE_CONTACTS}; /** - * Returns whether this facilitator is exactly for this list of locales. + * Returns whether this facilitator is exactly for this locale. * - * @param locales the list of locales to test against + * @param locale the locale to test against */ - boolean isForLocales(final Locale[] locales); + boolean isForLocale(final Locale locale); /** * Returns whether this facilitator is exactly for this account. @@ -91,25 +91,11 @@ public interface DictionaryFacilitator { boolean isActive(); - /** - * Returns the most probable locale among all currently active locales. BE CAREFUL using this. - * - * DO NOT USE THIS just because it's convenient. Use it when it's correct, for example when - * choosing what dictionary to put a word in, or when changing the capitalization of a typed - * string. - * @return the most probable locale - */ - Locale getMostProbableLocale(); - - Locale[] getLocales(); - - void switchMostProbableLanguage(@Nullable final Locale locale); - - boolean isConfidentAboutCurrentLanguageBeing(final Locale mLocale); + Locale getLocale(); void resetDictionaries( final Context context, - final Locale[] newLocales, + final Locale newLocale, final boolean useContactsDict, final boolean usePersonalizedDicts, final boolean forceReloadMainDictionary, @@ -120,7 +106,7 @@ public interface DictionaryFacilitator { @UsedForTesting void resetDictionariesForTesting( final Context context, - final Locale[] locales, + final Locale locale, final ArrayList<String> dictionaryTypes, final HashMap<String, File> dictionaryFiles, final Map<String, Map<String, String>> additionalDictAttributes, |