aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-11 16:11:50 -0700
committerDan Zivkovic <zivkovic@google.com>2015-03-11 17:29:12 -0700
commit107fb4c476779df16be23e245547253978c197ac (patch)
treeeda7c85d72b7fa74efd8a489c1319958a9309e19 /java/src/com/android/inputmethod/latin/DictionaryFacilitator.java
parent9a289da4e6ea40417422a540e821069d5d6e4a82 (diff)
downloadlatinime-107fb4c476779df16be23e245547253978c197ac.tar.gz
latinime-107fb4c476779df16be23e245547253978c197ac.tar.xz
latinime-107fb4c476779df16be23e245547253978c197ac.zip
Remove ALS from LatinIME.
This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryFacilitator.java')
-rw-r--r--java/src/com/android/inputmethod/latin/DictionaryFacilitator.java26
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,