mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #11097 from JosJuice/android-launch-wii-menu-check
Android: Improve checking in MainPresenter.launchWiiSystemMenu
This commit is contained in:
commit
3fab5b2338
@ -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");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user