Rename in preparation of caching an instance.

Change-Id: I112c957e20d4573daaa71aa218b575037585385c
main
Dan Zivkovic 2015-02-19 15:37:24 -08:00
parent 3bfc9d4692
commit 40b754565c
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.