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
This commit is contained in:
parent
449be371ae
commit
8e36e5102e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue