aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-19 23:15:06 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-19 23:15:06 +0000
commitc402ba43b86f1653490ddef2f5b8705174304bee (patch)
tree22b9b576c7b9453d4ac7980824fbd2758982718d /java/src
parent0dc6daf51fa263734ea7f88d504d8ed0093cec6c (diff)
parentdbf117b6613887fb4a7b39269e020940d956f009 (diff)
downloadlatinime-c402ba43b86f1653490ddef2f5b8705174304bee.tar.gz
latinime-c402ba43b86f1653490ddef2f5b8705174304bee.tar.xz
latinime-c402ba43b86f1653490ddef2f5b8705174304bee.zip
am dbf117b6: Log accepted punctuation suggestions.
* commit 'dbf117b6613887fb4a7b39269e020940d956f009': Log accepted punctuation suggestions.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
index 00175f024..562f09aee 100644
--- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
@@ -272,6 +272,9 @@ public final class InputLogic {
final String suggestion = suggestionInfo.mWord;
// If this is a punctuation picked from the suggestion strip, pass it to onCodeInput
if (suggestion.length() == 1 && suggestedWords.isPunctuationSuggestions()) {
+ // We still want to log a suggestion click.
+ StatsUtils.onPickSuggestionManually(
+ mSuggestedWords, suggestionInfo, mDictionaryFacilitator);
// Word separators are suggested before the user inputs something.
// Rely on onCodeInput to do the complicated swapping/stripping logic consistently.
final Event event = Event.createPunctuationSuggestionPickedEvent(suggestionInfo);