diff options
author | 2015-03-13 02:20:31 +0000 | |
---|---|---|
committer | 2015-03-13 02:20:31 +0000 | |
commit | 48d8911597f99ef84105056851fbe0a5f5d013a2 (patch) | |
tree | cd90797ea25bec0f0a9c6099aafbb6caffc42029 /java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java | |
parent | 326261181d9c0df6c586014fa46aceaeb020886b (diff) | |
parent | eaa710d4aaac75ff2b7e29608d004fe7662b392e (diff) | |
download | latinime-48d8911597f99ef84105056851fbe0a5f5d013a2.tar.gz latinime-48d8911597f99ef84105056851fbe0a5f5d013a2.tar.xz latinime-48d8911597f99ef84105056851fbe0a5f5d013a2.zip |
am eaa710d4: Separate executor for the Spelling decoder.
* commit 'eaa710d4aaac75ff2b7e29608d004fe7662b392e':
Separate executor for the Spelling decoder.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java b/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java index 6ab741ca1..f2491f478 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java @@ -143,8 +143,8 @@ public class UserDictionaryLookup implements Closeable { } // Schedule a new reload after RELOAD_DELAY_MS. - mReloadFuture = ExecutorUtils.getBackgroundExecutor().schedule( - mLoader, RELOAD_DELAY_MS, TimeUnit.MILLISECONDS); + mReloadFuture = ExecutorUtils.getBackgroundExecutor(ExecutorUtils.SPELLING) + .schedule(mLoader, RELOAD_DELAY_MS, TimeUnit.MILLISECONDS); } } private final ContentObserver mObserver = new UserDictionaryContentObserver(); @@ -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.getBackgroundExecutor().execute(mLoader); + ExecutorUtils.getBackgroundExecutor(ExecutorUtils.SPELLING).execute(mLoader); // Register the observer to be notified on changes to the UserDictionary and all individual // items. |