mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Rename in preparation of caching an instance.
Change-Id: I112c957e20d4573daaa71aa218b575037585385c
This commit is contained in:
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
Block a user