From 8e36e5102e9ac294a0e64ca14920d38ba19e6eb3 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 5 Jul 2012 15:26:43 +0900 Subject: [PATCH] Remove useless processing (A65) We just resetted the composing state - updating suggestions is sure to yield no results. We may as well not call updateSuggestions at all. We should however still cancel any lingering timer from a previous input field, to avoid this useless processing. Change-Id: Ic1a19d577903d792bb797c837cc517ea8d430e75 --- java/src/com/android/inputmethod/latin/LatinIME.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 25159b5ce..571f717c2 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -689,8 +689,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mSuggestionsView.clear(); setSuggestionStripShownInternal( isSuggestionsStripVisible(), /* needsInputViewShown */ false); - // Delay updating suggestions because keyboard input view may not be shown at this point. - mHandler.postUpdateSuggestions(); + + mHandler.cancelUpdateSuggestionStrip(); mHandler.cancelDoubleSpacesTimer(); inputView.setKeyPreviewPopupEnabled(mCurrentSettings.mKeyPreviewPopupOn,