mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
Android: Improve checking in MainPresenter.launchWiiSystemMenu
Not only SystemMenuNotInstalledDialogFragment requires directory initialization to have completed, but also isSystemMenuInstalled.
This commit is contained in:
parent
199d2be939
commit
2c216c9a2b
1 changed files with 8 additions and 8 deletions
|
@ -317,20 +317,20 @@ public final class MainPresenter
|
||||||
|
|
||||||
private void launchWiiSystemMenu()
|
private void launchWiiSystemMenu()
|
||||||
{
|
{
|
||||||
if (WiiUtils.isSystemMenuInstalled())
|
new AfterDirectoryInitializationRunner().runWithLifecycle(mActivity, () ->
|
||||||
{
|
{
|
||||||
EmulationActivity.launchSystemMenu(mActivity);
|
if (WiiUtils.isSystemMenuInstalled())
|
||||||
}
|
{
|
||||||
else
|
EmulationActivity.launchSystemMenu(mActivity);
|
||||||
{
|
}
|
||||||
new AfterDirectoryInitializationRunner().runWithLifecycle(mActivity, () ->
|
else
|
||||||
{
|
{
|
||||||
SystemMenuNotInstalledDialogFragment dialogFragment =
|
SystemMenuNotInstalledDialogFragment dialogFragment =
|
||||||
new SystemMenuNotInstalledDialogFragment();
|
new SystemMenuNotInstalledDialogFragment();
|
||||||
dialogFragment
|
dialogFragment
|
||||||
.show(mActivity.getSupportFragmentManager(),
|
.show(mActivity.getSupportFragmentManager(),
|
||||||
"SystemMenuNotInstalledDialogFragment");
|
"SystemMenuNotInstalledDialogFragment");
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue