Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11097 from JosJuice/android-launch-wii-menu-check
Android: Improve checking in MainPresenter.launchWiiSystemMenu
  • Loading branch information
lioncash committed Sep 29, 2022
2 parents 865348c + 2c216c9 commit 3fab5b2
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -317,20 +317,20 @@ private static void launchUpdateProgressBarFragment(FragmentActivity activity)

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");
});
}
}
});
}
}

0 comments on commit 3fab5b2

Please sign in to comment.