diff options
author | 2015-03-17 22:39:16 +0000 | |
---|---|---|
committer | 2015-03-17 22:39:17 +0000 | |
commit | 0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1 (patch) | |
tree | 9762205159be9de20a9aef028b18cc18b7b86633 /java | |
parent | edcf5853d1f9253e3a76e6db01731b9465da6ae0 (diff) | |
parent | 4024984c1efa394018631ca1bb46deba3efa629c (diff) | |
download | latinime-0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1.tar.gz latinime-0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1.tar.xz latinime-0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1.zip |
Merge "Pass DictionaryFacilitator for autocorrection and suggestion stats"
Diffstat (limited to 'java')
-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); |