From da12ff02fc534d9efc9e64aeb75f8f86d12d12ca Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 8 Mar 2022 22:29:07 +0100 Subject: [PATCH] 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. --- .../dolphinemu/dolphinemu/utils/DirectoryInitialization.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/DirectoryInitialization.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/DirectoryInitialization.java index 02352fdb4f..56ade14623 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/DirectoryInitialization.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/DirectoryInitialization.java @@ -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)