diff options
| author | OatmealDome <OatmealDome@users.noreply.github.com> | 2025-11-09 17:08:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-09 17:08:43 -0500 |
| commit | fdf822f4305ae7cc5aef655fe484c903b8fb05b1 (patch) | |
| tree | 654caa05ee415aa02774df6b1422287a7455374b /Source/Android/app/src/main/java | |
| parent | 31ca3bca473d2ea059ecbba4b67a9cb512625a1c (diff) | |
| parent | b733213bcfff7251b9e7fee626e3551079732feb (diff) | |
Merge pull request #14093 from Simonx22/android/fix-system-update-dialog-dismissal
Android: Prevent dismissing the System Update dialog by tapping outside
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/sysupdate/ui/SystemUpdateProgressBarDialogFragment.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/sysupdate/ui/SystemUpdateProgressBarDialogFragment.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/sysupdate/ui/SystemUpdateProgressBarDialogFragment.kt index a02e210a9c..b476326d50 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/sysupdate/ui/SystemUpdateProgressBarDialogFragment.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/sysupdate/ui/SystemUpdateProgressBarDialogFragment.kt @@ -21,6 +21,7 @@ class SystemUpdateProgressBarDialogFragment : DialogFragment() { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { viewModel = ViewModelProvider(requireActivity())[SystemUpdateViewModel::class.java] + isCancelable = false // We need to set the message to something here, otherwise the text will not appear when we set it later. val progressDialogBuilder = MaterialAlertDialogBuilder(requireContext()) @@ -65,6 +66,7 @@ class SystemUpdateProgressBarDialogFragment : DialogFragment() { } val progressDialog = progressDialogBuilder.create() + progressDialog.setCanceledOnTouchOutside(false) viewModel.titleIdData.observe(this) { titleId: Long -> progressDialog.setMessage(getString(R.string.updating_message, titleId)) |
