diff --git a/ground/src/main/java/com/google/android/ground/ui/offlinebasemap/selector/DownloadProgressDialogFragment.kt b/ground/src/main/java/com/google/android/ground/ui/offlinebasemap/selector/DownloadProgressDialogFragment.kt index ae3713f525..ff322a4ac7 100644 --- a/ground/src/main/java/com/google/android/ground/ui/offlinebasemap/selector/DownloadProgressDialogFragment.kt +++ b/ground/src/main/java/com/google/android/ground/ui/offlinebasemap/selector/DownloadProgressDialogFragment.kt @@ -32,12 +32,15 @@ class DownloadProgressDialogFragment : Hilt_DownloadProgressDialogFragment() { val binding = DownloadProgressDialogFragBinding.inflate(inflater) binding.lifecycleOwner = this binding.viewModel = getViewModel(OfflineAreaSelectorViewModel::class.java) - return AlertDialog.Builder(requireActivity()) - .setTitle("Download progress") - .setMessage(getString(R.string.offline_map_imagery_download_progress_dialog_message)) - .setView(binding.root) - .setCancelable(false) - .create() + val dialog = + AlertDialog.Builder(requireActivity()) + .setTitle("Download progress") + .setMessage(getString(R.string.offline_map_imagery_download_progress_dialog_message)) + .setView(binding.root) + .setCancelable(false) + .create() + dialog.setCanceledOnTouchOutside(false) + return dialog } fun setVisibility(childFragmentManager: FragmentManager, newVisibility: Boolean) {