mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
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:
parent
9af9e791f6
commit
da12ff02fc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user