Merge pull request #11097 from JosJuice/android-launch-wii-menu-check

Android: Improve checking in MainPresenter.launchWiiSystemMenu
This commit is contained in:
Mai
2022-09-29 09:03:46 -04:00
committed by GitHub

View File

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