diff options
author | 2010-06-02 20:16:31 +0900 | |
---|---|---|
committer | 2010-06-02 21:58:36 +0900 | |
commit | dd58fe92d1276e683e6c5842414131b36401f525 (patch) | |
tree | 303802d0ec0d9665f81f829e4434c71f227c146b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 0175d7da21f62a97fdae88ca5343c1b5127f8529 (diff) | |
download | latinime-dd58fe92d1276e683e6c5842414131b36401f525.tar.gz latinime-dd58fe92d1276e683e6c5842414131b36401f525.tar.xz latinime-dd58fe92d1276e683e6c5842414131b36401f525.zip |
Add candidates of manually picked suggestions
Change-Id: Ieed585be5f4e88509cdcc31f5d82474cb06add6a
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 50b1d38cd..46fca372c 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1521,6 +1521,7 @@ 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) { mVoiceInput.flushAllTextModificationCounters(); @@ -1554,8 +1555,8 @@ public class LatinIME extends InputMethodService || isSuggestedPunctuation(suggestion.charAt(0)))) { // Word separators are suggested before the user inputs something. // So, LatinImeLogger logs "" as a user's input. - LatinImeLogger.logOnClickSuggestion( - "", suggestion.toString(), index); + LatinImeLogger.logOnManualSuggestion( + "", suggestion.toString(), index, suggestions); onKey(suggestion.charAt(0), null); if (ic != null) { ic.endBatchEdit(); @@ -1568,8 +1569,8 @@ public class LatinIME extends InputMethodService if (index == 0) { checkAddToDictionary(suggestion, AutoDictionary.FREQUENCY_FOR_PICKED); } - LatinImeLogger.logOnClickSuggestion( - mComposing.toString(), suggestion.toString(), index); + LatinImeLogger.logOnManualSuggestion(mComposing.toString(), suggestion.toString(), + index, suggestions); TextEntryState.acceptedSuggestion(mComposing.toString(), suggestion); // Follow it with a space if (mAutoSpace) { |