aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-02-19 22:51:46 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-19 22:51:46 +0000
commit4b0697938b3ae3e6357c0104baba2499a4d7474d (patch)
tree2402dff6a1bbd334728742b4cb2306b347dc0ca9 /java/src
parentc38d83eb1ae3c5aff8dd885bb3d35d8ed83845ad (diff)
parent3bfc9d46923a2f769ac2072ac817b01b720fabb2 (diff)
downloadlatinime-4b0697938b3ae3e6357c0104baba2499a4d7474d.tar.gz
latinime-4b0697938b3ae3e6357c0104baba2499a4d7474d.tar.xz
latinime-4b0697938b3ae3e6357c0104baba2499a4d7474d.zip
am 3bfc9d46: Merge "Schedule with 0 delay is the same as execute."
* commit '3bfc9d46923a2f769ac2072ac817b01b720fabb2': Schedule with 0 delay is the same as execute.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java3
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.