Android: Actually use a thread for DirectoryInitialization

`((Runnable) () -> init(context)).run()` is just a more complicated way
of writing `init(context)`, and doesn't on its own launch a thread.
This commit is contained in:
JosJuice 2022-03-08 22:29:07 +01:00
parent 9af9e791f6
commit da12ff02fc
1 changed files with 1 additions and 2 deletions

View File

@ -55,8 +55,7 @@ public final class DirectoryInitialization
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)