diff options
author | 2010-12-17 07:56:46 -0800 | |
---|---|---|
committer | 2010-12-17 07:56:46 -0800 | |
commit | 82496fa100b38ad73910545c6a0e9244cf0ee6e0 (patch) | |
tree | 9797fbd84f94f93a187af71f25cb811dbc61dbb9 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | e75e00d898bd38301761e674eee5dfb5bb6d9c87 (diff) | |
parent | 7a3a99429f999f5b985092ae4b275ddec9639ad4 (diff) | |
download | latinime-82496fa100b38ad73910545c6a0e9244cf0ee6e0.tar.gz latinime-82496fa100b38ad73910545c6a0e9244cf0ee6e0.tar.xz latinime-82496fa100b38ad73910545c6a0e9244cf0ee6e0.zip |
Merge "DO NOT MERGE: Logging for the VoiceSearch alternates" into gingerbread
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index b6fee1170..ffca22e45 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1864,13 +1864,14 @@ public class LatinIME extends InputMethodService } public void pickSuggestionManually(int index, CharSequence suggestion) { - if (mAfterVoiceInput && mShowingVoiceSuggestions) mVoiceInput.logNBestChoose(index); List<CharSequence> suggestions = mCandidateView.getSuggestions(); - if (mAfterVoiceInput && !mShowingVoiceSuggestions) { + if (mAfterVoiceInput && mShowingVoiceSuggestions) { mVoiceInput.flushAllTextModificationCounters(); // send this intent AFTER logging any prior aggregated edits. - mVoiceInput.logTextModifiedByChooseSuggestion(suggestion.length()); + mVoiceInput.logTextModifiedByChooseSuggestion(suggestion.toString(), index, + mWordSeparators, + getCurrentInputConnection()); } final boolean correcting = TextEntryState.isCorrecting(); |