aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorMaryam Garrett <mkamvar@google.com>2010-12-03 16:28:31 -0500
committerMaryam Garrett <mkamvar@google.com>2010-12-06 11:37:28 -0500
commit7a3a99429f999f5b985092ae4b275ddec9639ad4 (patch)
tree3093afcc380075936ce5508252ba8d94b7036c68 /java/src/com/android/inputmethod/latin/LatinIME.java
parent6c13b1a6c7b36d1628cf81ce1afd5efe569ee703 (diff)
downloadlatinime-7a3a99429f999f5b985092ae4b275ddec9639ad4.tar.gz
latinime-7a3a99429f999f5b985092ae4b275ddec9639ad4.tar.xz
latinime-7a3a99429f999f5b985092ae4b275ddec9639ad4.zip
DO NOT MERGE: Logging for the VoiceSearch alternates
Log which voice-based alternates were selected, and what word in the recognition results were replaced. This change was commited in master, but was never merged into GB. Bug: 3243768 Change-Id: I8f624517990cc77c5cd714bd68ce32ac1b64489f
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
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();