am 40b75456: Rename in preparation of caching an instance.

* commit '40b754565ce86247e2ae95e9de6b54b53a35fca8':
  Rename in preparation of caching an instance.
main
Dan Zivkovic 2015-02-20 01:16:26 +00:00 committed by Android Git Automerger
commit 6ed6306e1f
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ package com.android.inputmethod.latin;
* Factory for instantiating DictionaryFacilitator objects.
*/
public class DictionaryFacilitatorProvider {
public static DictionaryFacilitator newDictionaryFacilitator() {
public static DictionaryFacilitator getDictionaryFacilitator() {
return new DictionaryFacilitatorImpl();
}
}

View File

@ -136,7 +136,7 @@ public class DictionaryFacilitatorLruCache {
if (dictionaryFacilitator != null) {
return dictionaryFacilitator;
}
dictionaryFacilitator = DictionaryFacilitatorProvider.newDictionaryFacilitator();
dictionaryFacilitator = DictionaryFacilitatorProvider.getDictionaryFacilitator();
resetDictionariesForLocaleLocked(dictionaryFacilitator, locale);
waitForLoadingMainDictionary(dictionaryFacilitator);
mLruCache.put(locale, dictionaryFacilitator);

View File

@ -127,7 +127,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final Settings mSettings;
private final DictionaryFacilitator mDictionaryFacilitator =
DictionaryFacilitatorProvider.newDictionaryFacilitator();
DictionaryFacilitatorProvider.getDictionaryFacilitator();
final InputLogic mInputLogic = new InputLogic(this /* LatinIME */,
this /* SuggestionStripViewAccessor */, mDictionaryFacilitator);
// We expect to have only one decoder in almost all cases, hence the default capacity of 1.