aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorMaryam Garrett <mkamvar@google.com>2010-08-26 16:31:54 -0400
committerMaryam Garrett <mkamvar@google.com>2010-08-30 14:34:10 -0400
commit7b9ed1aa7601e263a46cf6b852df75a3866277d4 (patch)
tree02854c8e6b6233e0f127f6290835f22a9cf19f48 /java/src/com/android/inputmethod/latin/LatinIME.java
parenta66ccc3e8da054341ada866706ad61c31468599b (diff)
downloadlatinime-7b9ed1aa7601e263a46cf6b852df75a3866277d4.tar.gz
latinime-7b9ed1aa7601e263a46cf6b852df75a3866277d4.tar.xz
latinime-7b9ed1aa7601e263a46cf6b852df75a3866277d4.zip
Logging for the VoiceSearch alternates
Log which voice-based alternates were selected, and what word in the recognition results were replaced. Change-Id: I1527dc794902a18a226ca45e186ecf84841094c8 Conflicts: java/src/com/android/inputmethod/latin/LatinIME.java
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
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();