mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-20 04:21:00 +01:00
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.
This commit is contained in:
parent
10ba318807
commit
f813dc78b2
1 changed files with 4 additions and 1 deletions
|
@ -104,7 +104,10 @@ class AddonsFragment : Fragment() {
|
||||||
requireActivity(),
|
requireActivity(),
|
||||||
titleId = R.string.addon_notice,
|
titleId = R.string.addon_notice,
|
||||||
descriptionId = R.string.addon_notice_description,
|
descriptionId = R.string.addon_notice_description,
|
||||||
positiveAction = { addonViewModel.showModInstallPicker(true) }
|
dismissible = false,
|
||||||
|
positiveAction = { addonViewModel.showModInstallPicker(true) },
|
||||||
|
negativeAction = {},
|
||||||
|
negativeButtonTitleId = R.string.close
|
||||||
).show(parentFragmentManager, MessageDialogFragment.TAG)
|
).show(parentFragmentManager, MessageDialogFragment.TAG)
|
||||||
addonViewModel.showModNoticeDialog(false)
|
addonViewModel.showModNoticeDialog(false)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue