diff options
| author | Simonx22 <simon@oatmealdome.me> | 2025-11-09 01:21:58 -0500 |
|---|---|---|
| committer | Simonx22 <simon@oatmealdome.me> | 2025-11-09 01:21:58 -0500 |
| commit | b733213bcfff7251b9e7fee626e3551079732feb (patch) | |
| tree | 492adfe23dce529e5f2fde9f9be57275417a916e /Source/Android/app/src | |
| parent | 4f849ec8273abfd8290b565264cfe7e422d4961f (diff) | |
Android: Prevent dismissing the System Update dialog by tapping outside
Tapping outside the System Update dialog would previously close it and leave the update in a partially canceled, inconsistent state. This change disables outside-touch dismissal to avoid accidental interruptions and ensure the process completes cleanly.
Diffstat (limited to 'Source/Android/app/src')
| -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)) |
