From 7e99a28dfcc14f5b19220442db972ca8d786b4fe Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Wed, 2 Mar 2011 15:56:17 +0900 Subject: [PATCH] Clear suggestion strip when the suggestion starts bug: 3488704 bug: 3480132 Change-Id: Ie895d2ad1b58dc65fe16d65baa6fccafd4a142bb --- java/src/com/android/inputmethod/latin/LatinIME.java | 1 + java/src/com/android/inputmethod/latin/Suggest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index ec491b7de..c4e5ce39f 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1290,6 +1290,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mComposing.setLength(0); saveWordInHistory(mBestWord); mWord.reset(); + clearSuggestions(); } } KeyboardSwitcher switcher = mKeyboardSwitcher; diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 6466f7980..ee6930d93 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -297,7 +297,7 @@ public class Suggest implements Dictionary.WordCallback { } if (normalizedScore >= mAutoCorrectionThreshold) { if (DBG) { - Log.d(TAG, "Auto corrected by S-threthhold."); + Log.d(TAG, "Auto corrected by S-threshold."); } mHasAutoCorrection = true; }