diff options
author | 2010-12-20 11:30:03 -0800 | |
---|---|---|
committer | 2010-12-20 11:30:03 -0800 | |
commit | 65864d9ea22568a86511dc77122e704013537491 (patch) | |
tree | 9797fbd84f94f93a187af71f25cb811dbc61dbb9 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 44aeff2b5ce81c23495f982102c35abd2dab969a (diff) | |
parent | 82496fa100b38ad73910545c6a0e9244cf0ee6e0 (diff) | |
download | latinime-65864d9ea22568a86511dc77122e704013537491.tar.gz latinime-65864d9ea22568a86511dc77122e704013537491.tar.xz latinime-65864d9ea22568a86511dc77122e704013537491.zip |
am 82496fa1: Merge "DO NOT MERGE: Logging for the VoiceSearch alternates" into gingerbread
* commit '82496fa100b38ad73910545c6a0e9244cf0ee6e0':
DO NOT MERGE: Logging for the VoiceSearch alternates
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(); |