diff options
author | 2015-03-09 21:07:46 +0000 | |
---|---|---|
committer | 2015-03-09 21:07:46 +0000 | |
commit | 1fa61ab61b10895c6d0121e9a25e533ed3907f70 (patch) | |
tree | 296790ea5b19ec43a417ac14ecf246beb35689c4 /java/src/com/android/inputmethod/latin/spellcheck | |
parent | 299e43ffeb1dc9729debe3966a01df914b60a5e8 (diff) | |
parent | f9e2d271ca101a53a6aac772ca770242805793ef (diff) | |
download | latinime-1fa61ab61b10895c6d0121e9a25e533ed3907f70.tar.gz latinime-1fa61ab61b10895c6d0121e9a25e533ed3907f70.tar.xz latinime-1fa61ab61b10895c6d0121e9a25e533ed3907f70.zip |
am f9e2d271: Use a single background executor.
* commit 'f9e2d271ca101a53a6aac772ca770242805793ef':
Use a single background executor.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java | 4 |
1 files changed, 2 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 856f16a53..6ab741ca1 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java @@ -143,7 +143,7 @@ public class UserDictionaryLookup implements Closeable { } // Schedule a new reload after RELOAD_DELAY_MS. - mReloadFuture = ExecutorUtils.getExecutorForDynamicLanguageModelUpdate().schedule( + mReloadFuture = ExecutorUtils.getBackgroundExecutor().schedule( mLoader, RELOAD_DELAY_MS, TimeUnit.MILLISECONDS); } } @@ -186,7 +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().execute(mLoader); + ExecutorUtils.getBackgroundExecutor().execute(mLoader); // Register the observer to be notified on changes to the UserDictionary and all individual // items. |