Merge pull request #11097 from JosJuice/android-launch-wii-menu-check
Android: Improve checking in MainPresenter.launchWiiSystemMenu
This commit is contained in:
commit
3fab5b2338
|
@ -316,21 +316,21 @@ public final class MainPresenter
|
||||||
}
|
}
|
||||||
|
|
||||||
private void launchWiiSystemMenu()
|
private void launchWiiSystemMenu()
|
||||||
|
{
|
||||||
|
new AfterDirectoryInitializationRunner().runWithLifecycle(mActivity, () ->
|
||||||
{
|
{
|
||||||
if (WiiUtils.isSystemMenuInstalled())
|
if (WiiUtils.isSystemMenuInstalled())
|
||||||
{
|
{
|
||||||
EmulationActivity.launchSystemMenu(mActivity);
|
EmulationActivity.launchSystemMenu(mActivity);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
new AfterDirectoryInitializationRunner().runWithLifecycle(mActivity, () ->
|
|
||||||
{
|
{
|
||||||
SystemMenuNotInstalledDialogFragment dialogFragment =
|
SystemMenuNotInstalledDialogFragment dialogFragment =
|
||||||
new SystemMenuNotInstalledDialogFragment();
|
new SystemMenuNotInstalledDialogFragment();
|
||||||
dialogFragment
|
dialogFragment
|
||||||
.show(mActivity.getSupportFragmentManager(),
|
.show(mActivity.getSupportFragmentManager(),
|
||||||
"SystemMenuNotInstalledDialogFragment");
|
"SystemMenuNotInstalledDialogFragment");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue