aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-05 15:26:43 +0900
committerJean Chalard <jchalard@google.com>2012-07-06 16:28:42 +0900
commit8e36e5102e9ac294a0e64ca14920d38ba19e6eb3 (patch)
tree14609b2fe51bbe5b4ae03a52e90eff44d419b0e6 /java/src
parent449be371aee91594bc6ee09479af0cc20bcfcea9 (diff)
downloadlatinime-8e36e5102e9ac294a0e64ca14920d38ba19e6eb3.tar.gz
latinime-8e36e5102e9ac294a0e64ca14920d38ba19e6eb3.tar.xz
latinime-8e36e5102e9ac294a0e64ca14920d38ba19e6eb3.zip
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
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files 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,