Schedule with 0 delay is the same as execute.

Change-Id: Ifadae8aee668edbe2b507735d3ed6e68d52ef329
This commit is contained in:
Dan Zivkovic 2015-02-19 14:19:23 -08:00
parent 705b118672
commit 6a000183c5

View file

@ -186,8 +186,7 @@ public class UserDictionaryLookup implements Closeable {
// Schedule the initial load to run immediately. It's possible that the first call to
// isValidWord occurs before the dictionary has actually loaded, so it should not
// assume that the dictionary has been loaded.
ExecutorUtils.getExecutorForDynamicLanguageModelUpdate().schedule(
mLoader, 0, TimeUnit.MILLISECONDS);
ExecutorUtils.getExecutorForDynamicLanguageModelUpdate().execute(mLoader);
// Register the observer to be notified on changes to the UserDictionary and all individual
// items.