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
commit 3fab5b2338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

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