Skip to content
Snippets Groups Projects
Commit dbf117b6 authored by Dan Zivkovic's avatar Dan Zivkovic
Browse files

Log accepted punctuation suggestions.

Bug 19825927.

Change-Id: If65b56aa5c269e47bcc609bdc673ba18c450ee66
parent 60835872
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment