From 40b754565ce86247e2ae95e9de6b54b53a35fca8 Mon Sep 17 00:00:00 2001 From: Dan Zivkovic Date: Thu, 19 Feb 2015 15:37:24 -0800 Subject: [PATCH] Rename in preparation of caching an instance. Change-Id: I112c957e20d4573daaa71aa218b575037585385c --- .../inputmethod/latin/DictionaryFacilitatorProvider.java | 2 +- .../inputmethod/latin/DictionaryFacilitatorLruCache.java | 2 +- java/src/com/android/inputmethod/latin/LatinIME.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-overridable/src/com/android/inputmethod/latin/DictionaryFacilitatorProvider.java b/java-overridable/src/com/android/inputmethod/latin/DictionaryFacilitatorProvider.java index 205d6487a..2a3774b98 100644 --- a/java-overridable/src/com/android/inputmethod/latin/DictionaryFacilitatorProvider.java +++ b/java-overridable/src/com/android/inputmethod/latin/DictionaryFacilitatorProvider.java @@ -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(); } } diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java index 85ecf93f3..def20931e 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java +++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java @@ -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); diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index a1ab5c090..e37f20f09 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -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.