Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bfc9d46 authored by Dan Zivkovic's avatar Dan Zivkovic Committed by Android (Google) Code Review
Browse files

Merge "Schedule with 0 delay is the same as execute."

parents 7041313f 6a000183
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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.