Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10503 from JosJuice/android-directoryinitializati…
…on-thread

Android: Actually use a thread for DirectoryInitialization
  • Loading branch information
lioncash committed Apr 9, 2022
2 parents 417531f + da12ff0 commit e3106e8
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -55,8 +55,7 @@ public static void start(Context context)
directoryState.setValue(DirectoryInitializationState.INITIALIZING);

// Can take a few seconds to run, so don't block UI thread.
//noinspection TrivialFunctionalExpressionUsage
((Runnable) () -> init(context)).run();
new Thread(() -> init(context)).start();
}

private static void init(Context context)
Expand Down

0 comments on commit e3106e8

Please sign in to comment.