Merge "Schedule with 0 delay is the same as execute."
This commit is contained in:
commit
3bfc9d4692
1 changed files with 1 additions and 2 deletions
|
@ -186,8 +186,7 @@ public class UserDictionaryLookup implements Closeable {
|
||||||
// Schedule the initial load to run immediately. It's possible that the first call to
|
// 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
|
// isValidWord occurs before the dictionary has actually loaded, so it should not
|
||||||
// assume that the dictionary has been loaded.
|
// assume that the dictionary has been loaded.
|
||||||
ExecutorUtils.getExecutorForDynamicLanguageModelUpdate().schedule(
|
ExecutorUtils.getExecutorForDynamicLanguageModelUpdate().execute(mLoader);
|
||||||
mLoader, 0, TimeUnit.MILLISECONDS);
|
|
||||||
|
|
||||||
// Register the observer to be notified on changes to the UserDictionary and all individual
|
// Register the observer to be notified on changes to the UserDictionary and all individual
|
||||||
// items.
|
// items.
|
||||||
|
|
Loading…
Reference in a new issue