diff options
| author | 2024-02-13 13:46:14 -0500 | |
|---|---|---|
| committer | 2024-02-13 13:46:14 -0500 | |
| commit | f813dc78b2ada097444380fc05195907cc91bdfa (patch) | |
| tree | e4bc7764145f6ff49ea2cfa502f6122ac3302e6b /src/android | |
| parent | android: Show cancel option for delete addons dialog (diff) | |
| download | yuzu-f813dc78b2ada097444380fc05195907cc91bdfa.tar.gz yuzu-f813dc78b2ada097444380fc05195907cc91bdfa.tar.xz yuzu-f813dc78b2ada097444380fc05195907cc91bdfa.zip | |
android: Prevent user from dismissing mod/cheat notice
Makes sure that a user can't miss this dialog by touching outside the window. They must press "OK" or "Close" to continue.
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt index ae09d5006..872553ac4 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt | |||
| @@ -104,7 +104,10 @@ class AddonsFragment : Fragment() { | |||
| 104 | requireActivity(), | 104 | requireActivity(), |
| 105 | titleId = R.string.addon_notice, | 105 | titleId = R.string.addon_notice, |
| 106 | descriptionId = R.string.addon_notice_description, | 106 | descriptionId = R.string.addon_notice_description, |
| 107 | positiveAction = { addonViewModel.showModInstallPicker(true) } | 107 | dismissible = false, |
| 108 | positiveAction = { addonViewModel.showModInstallPicker(true) }, | ||
| 109 | negativeAction = {}, | ||
| 110 | negativeButtonTitleId = R.string.close | ||
| 108 | ).show(parentFragmentManager, MessageDialogFragment.TAG) | 111 | ).show(parentFragmentManager, MessageDialogFragment.TAG) |
| 109 | addonViewModel.showModNoticeDialog(false) | 112 | addonViewModel.showModNoticeDialog(false) |
| 110 | } | 113 | } |