Rename in preparation of caching an instance.
Change-Id: I112c957e20d4573daaa71aa218b575037585385cmain
parent
3bfc9d4692
commit
40b754565c
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue