diff options
author | 2015-02-09 17:09:15 -0800 | |
---|---|---|
committer | 2015-02-24 17:59:47 -0800 | |
commit | 2b8d763c65b2482fcdc7efe301907ac18133fa42 (patch) | |
tree | b9e404c9930d6a0288a0f2a2e94466056915aa0d /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | |
parent | a3ac6f24cc6a22651e09a1bf7fc018d4af945333 (diff) | |
download | latinime-2b8d763c65b2482fcdc7efe301907ac18133fa42.tar.gz latinime-2b8d763c65b2482fcdc7efe301907ac18133fa42.tar.xz latinime-2b8d763c65b2482fcdc7efe301907ac18133fa42.zip |
Pass ComposedData to the decoder instead of WordComposer.
Change-Id: I8bd544d03d9087a02294b08a9986cad229dae795
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java index d35d1f2f5..9822c5725 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java @@ -37,11 +37,11 @@ import com.android.inputmethod.latin.NgramContext; import com.android.inputmethod.latin.R; import com.android.inputmethod.latin.RichInputMethodSubtype; import com.android.inputmethod.latin.SuggestedWords; +import com.android.inputmethod.latin.common.ComposedData; import com.android.inputmethod.latin.settings.SettingsValuesForSuggestion; import com.android.inputmethod.latin.utils.AdditionalSubtypeUtils; import com.android.inputmethod.latin.utils.ScriptUtils; import com.android.inputmethod.latin.utils.SuggestionResults; -import com.android.inputmethod.latin.WordComposer; import java.util.Locale; import java.util.concurrent.ConcurrentHashMap; @@ -191,16 +191,16 @@ public final class AndroidSpellCheckerService extends SpellCheckerService } } - public SuggestionResults getSuggestionResults(final Locale locale, final WordComposer composer, - final NgramContext ngramContext, final ProximityInfo proximityInfo, - final KeyboardLayout keyboardLayout) { + public SuggestionResults getSuggestionResults(final Locale locale, + final ComposedData composedData, final NgramContext ngramContext, + final ProximityInfo proximityInfo, final KeyboardLayout keyboardLayout) { Integer sessionId = null; mSemaphore.acquireUninterruptibly(); try { sessionId = mSessionIdPool.poll(); DictionaryFacilitator dictionaryFacilitatorForLocale = mDictionaryFacilitatorCache.get(locale); - return dictionaryFacilitatorForLocale.getSuggestionResults(composer, ngramContext, + return dictionaryFacilitatorForLocale.getSuggestionResults(composedData, ngramContext, proximityInfo.getNativeProximityInfo(), mSettingsValuesForSuggestion, sessionId, SuggestedWords.INPUT_STYLE_TYPING, keyboardLayout); } finally { |