aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorMohammadinamul Sheik <inamul@google.com>2015-03-17 22:39:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-17 22:39:17 +0000
commit0bbbbdf1c43d94edadf6f7996a6b5eb04f5e29c1 (patch)
tree9762205159be9de20a9aef028b18cc18b7b86633 /java
parentedcf5853d1f9253e3a76e6db01731b9465da6ae0 (diff)
parent4024984c1efa394018631ca1bb46deba3efa629c (diff)
downloadlatinime-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.java6
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);