aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-18 14:48:19 -0700
committerDan Zivkovic <zivkovic@google.com>2015-03-19 15:40:40 -0700
commitdbf117b6613887fb4a7b39269e020940d956f009 (patch)
treee2e959efda28e9820f58e1ef3e07845d87777a50 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
parent60835872a15992e239cf9bd038b6ee33b405f1d3 (diff)
downloadlatinime-dbf117b6613887fb4a7b39269e020940d956f009.tar.gz
latinime-dbf117b6613887fb4a7b39269e020940d956f009.tar.xz
latinime-dbf117b6613887fb4a7b39269e020940d956f009.zip
Log accepted punctuation suggestions.
Bug 19825927. Change-Id: If65b56aa5c269e47bcc609bdc673ba18c450ee66
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-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);