am dbf117b6
: Log accepted punctuation suggestions.
* commit 'dbf117b6613887fb4a7b39269e020940d956f009': Log accepted punctuation suggestions.
This commit is contained in:
commit
c402ba43b8
1 changed files with 3 additions and 0 deletions
|
@ -272,6 +272,9 @@ public final class InputLogic {
|
||||||
final String suggestion = suggestionInfo.mWord;
|
final String suggestion = suggestionInfo.mWord;
|
||||||
// If this is a punctuation picked from the suggestion strip, pass it to onCodeInput
|
// If this is a punctuation picked from the suggestion strip, pass it to onCodeInput
|
||||||
if (suggestion.length() == 1 && suggestedWords.isPunctuationSuggestions()) {
|
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.
|
// Word separators are suggested before the user inputs something.
|
||||||
// Rely on onCodeInput to do the complicated swapping/stripping logic consistently.
|
// Rely on onCodeInput to do the complicated swapping/stripping logic consistently.
|
||||||
final Event event = Event.createPunctuationSuggestionPickedEvent(suggestionInfo);
|
final Event event = Event.createPunctuationSuggestionPickedEvent(suggestionInfo);
|
||||||
|
|
Loading…
Reference in a new issue