am 40b75456: Rename in preparation of caching an instance.
* commit '40b754565ce86247e2ae95e9de6b54b53a35fca8': Rename in preparation of caching an instance.main
commit
6ed6306e1f
|
@ -20,7 +20,7 @@ package com.android.inputmethod.latin;
|
||||||
* Factory for instantiating DictionaryFacilitator objects.
|
* Factory for instantiating DictionaryFacilitator objects.
|
||||||
*/
|
*/
|
||||||
public class DictionaryFacilitatorProvider {
|
public class DictionaryFacilitatorProvider {
|
||||||
public static DictionaryFacilitator newDictionaryFacilitator() {
|
public static DictionaryFacilitator getDictionaryFacilitator() {
|
||||||
return new DictionaryFacilitatorImpl();
|
return new DictionaryFacilitatorImpl();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,7 +136,7 @@ public class DictionaryFacilitatorLruCache {
|
||||||
if (dictionaryFacilitator != null) {
|
if (dictionaryFacilitator != null) {
|
||||||
return dictionaryFacilitator;
|
return dictionaryFacilitator;
|
||||||
}
|
}
|
||||||
dictionaryFacilitator = DictionaryFacilitatorProvider.newDictionaryFacilitator();
|
dictionaryFacilitator = DictionaryFacilitatorProvider.getDictionaryFacilitator();
|
||||||
resetDictionariesForLocaleLocked(dictionaryFacilitator, locale);
|
resetDictionariesForLocaleLocked(dictionaryFacilitator, locale);
|
||||||
waitForLoadingMainDictionary(dictionaryFacilitator);
|
waitForLoadingMainDictionary(dictionaryFacilitator);
|
||||||
mLruCache.put(locale, dictionaryFacilitator);
|
mLruCache.put(locale, dictionaryFacilitator);
|
||||||
|
|
|
@ -127,7 +127,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
|
|
||||||
final Settings mSettings;
|
final Settings mSettings;
|
||||||
private final DictionaryFacilitator mDictionaryFacilitator =
|
private final DictionaryFacilitator mDictionaryFacilitator =
|
||||||
DictionaryFacilitatorProvider.newDictionaryFacilitator();
|
DictionaryFacilitatorProvider.getDictionaryFacilitator();
|
||||||
final InputLogic mInputLogic = new InputLogic(this /* LatinIME */,
|
final InputLogic mInputLogic = new InputLogic(this /* LatinIME */,
|
||||||
this /* SuggestionStripViewAccessor */, mDictionaryFacilitator);
|
this /* SuggestionStripViewAccessor */, mDictionaryFacilitator);
|
||||||
// We expect to have only one decoder in almost all cases, hence the default capacity of 1.
|
// We expect to have only one decoder in almost all cases, hence the default capacity of 1.
|
||||||
|
|
Loading…
Reference in New Issue