diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java index c6af492e63..d43187dcca 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java @@ -317,20 +317,20 @@ public final class MainPresenter private void launchWiiSystemMenu() { - if (WiiUtils.isSystemMenuInstalled()) + new AfterDirectoryInitializationRunner().runWithLifecycle(mActivity, () -> { - EmulationActivity.launchSystemMenu(mActivity); - } - else - { - new AfterDirectoryInitializationRunner().runWithLifecycle(mActivity, () -> + if (WiiUtils.isSystemMenuInstalled()) + { + EmulationActivity.launchSystemMenu(mActivity); + } + else { SystemMenuNotInstalledDialogFragment dialogFragment = new SystemMenuNotInstalledDialogFragment(); dialogFragment .show(mActivity.getSupportFragmentManager(), "SystemMenuNotInstalledDialogFragment"); - }); - } + } + }); } }