diff options
author | 2015-03-17 22:45:00 +0000 | |
---|---|---|
committer | 2015-03-17 22:45:00 +0000 | |
commit | 9cb17fd41b2ef73359c7843c27113a9ed8dffdef (patch) | |
tree | bf53162c44d5522e5dae7d0cc8130d7999d89944 /java/src | |
parent | 617f82a64664e9ad45bd17bc921d0123388948db (diff) | |
parent | 0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1 (diff) | |
download | latinime-9cb17fd41b2ef73359c7843c27113a9ed8dffdef.tar.gz latinime-9cb17fd41b2ef73359c7843c27113a9ed8dffdef.tar.xz latinime-9cb17fd41b2ef73359c7843c27113a9ed8dffdef.zip |
am 0bbbbdf1: Merge "Pass DictionaryFacilitator for autocorrection and suggestion stats"
* commit '0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1':
Pass DictionaryFacilitator for autocorrection and suggestion stats
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index f02a63e57..00175f024 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -324,7 +324,8 @@ public final class InputLogic { // That's going to be predictions (or punctuation suggestions), so INPUT_STYLE_NONE. handler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_NONE); - StatsUtils.onPickSuggestionManually(mSuggestedWords, suggestionInfo); + StatsUtils.onPickSuggestionManually( + mSuggestedWords, suggestionInfo, mDictionaryFacilitator); StatsUtils.onWordCommitSuggestionPickedManually( suggestionInfo.mWord, mWordComposer.isBatchMode()); return inputTransaction; @@ -2053,8 +2054,7 @@ public final class InputLogic { mConnection.getExpectedSelectionEnd() - stringToCommit.length(), typedWord, stringToCommit)); StatsUtils.onAutoCorrection(typedWord, stringToCommit, isBatchMode, - null == autoCorrectionOrNull - ? null : autoCorrectionOrNull.mSourceDict.mDictType); + mDictionaryFacilitator); StatsUtils.onWordCommitAutoCorrect(stringToCommit, isBatchMode); } else { StatsUtils.onWordCommitUserTyped(stringToCommit, isBatchMode); |