aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-12 17:06:48 -0700
committerDan Zivkovic <zivkovic@google.com>2015-03-12 17:10:38 -0700
commiteaa710d4aaac75ff2b7e29608d004fe7662b392e (patch)
tree6944df334be797522526b5e3f83484933e0b034d /java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java
parent26fb83c481034cb9dbc9504e60fde40c6b213e97 (diff)
downloadlatinime-eaa710d4aaac75ff2b7e29608d004fe7662b392e.tar.gz
latinime-eaa710d4aaac75ff2b7e29608d004fe7662b392e.tar.xz
latinime-eaa710d4aaac75ff2b7e29608d004fe7662b392e.zip
Separate executor for the Spelling decoder.
Bug 19710676. Change-Id: I6e66eddd507c11e424105869833fe6841b90275d
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java')
-rw-r--r--java/src/com/android/inputmethod/latin/spellcheck/UserDictionaryLookup.java6
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.