diff options
author | 2010-08-31 07:48:07 -0700 | |
---|---|---|
committer | 2010-08-31 07:48:07 -0700 | |
commit | 32511ef6cb272d2603a7c41b91ff0bdafdbf34f0 (patch) | |
tree | 5ee283e7a6eba4fc026339c795b5d3b6ae087b14 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 85c1c435405a77bdc7656214b21e941360ad7ec2 (diff) | |
parent | 7b9ed1aa7601e263a46cf6b852df75a3866277d4 (diff) | |
download | latinime-32511ef6cb272d2603a7c41b91ff0bdafdbf34f0.tar.gz latinime-32511ef6cb272d2603a7c41b91ff0bdafdbf34f0.tar.xz latinime-32511ef6cb272d2603a7c41b91ff0bdafdbf34f0.zip |
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 37ae43d38..e0a861a68 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1727,13 +1727,13 @@ 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(); |