diff options
author | 2015-02-19 14:19:23 -0800 | |
---|---|---|
committer | 2015-02-19 14:19:23 -0800 | |
commit | 6a000183c52fc8efdd8e253ea4c9f73fa1bb0a49 (patch) | |
tree | c8ccecdba88ca1e75c2498f6b368c7472ca454ba /java/src/com/android | |
parent | 705b118672ce5680257b31c565c520e95fd8e298 (diff) | |
download | latinime-6a000183c52fc8efdd8e253ea4c9f73fa1bb0a49.tar.gz latinime-6a000183c52fc8efdd8e253ea4c9f73fa1bb0a49.tar.xz latinime-6a000183c52fc8efdd8e253ea4c9f73fa1bb0a49.zip |
Schedule with 0 delay is the same as execute.
Change-Id: Ifadae8aee668edbe2b507735d3ed6e68d52ef329
Diffstat (limited to 'java/src/com/android')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java b/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java index 19620511d..856f16a53 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java @@ -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. |