aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorMaryam Garrett <mkamvar@google.com>2010-12-20 11:30:03 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-12-20 11:30:03 -0800
commit65864d9ea22568a86511dc77122e704013537491 (patch)
tree9797fbd84f94f93a187af71f25cb811dbc61dbb9 /java/src/com/android/inputmethod/latin/LatinIME.java
parent44aeff2b5ce81c23495f982102c35abd2dab969a (diff)
parent82496fa100b38ad73910545c6a0e9244cf0ee6e0 (diff)
downloadlatinime-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.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();