Wait for an event before actually realizing it

This would wrongly emit a 'timeout' log entry when switching
between two instances of the same language.

Change-Id: I56e5de121b87f3e762b58f0b2a77e9abc784036e
Jean Chalard 2014-07-28 19:33:49 +09:00
parent 825243bfdd
commit 3d951c1eff
1 changed files with 1 additions and 1 deletions

View File

@ -237,10 +237,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
latinIme.mKeyboardSwitcher.getCurrentKeyboardScriptId());
break;
case MSG_REOPEN_DICTIONARIES:
latinIme.resetSuggest();
// We need to re-evaluate the currently composing word in case the script has
// changed.
postWaitForDictionaryLoad();
latinIme.resetSuggest();
break;
case MSG_UPDATE_TAIL_BATCH_INPUT_COMPLETED:
latinIme.mInputLogic.onUpdateTailBatchInputCompleted(