Skip to content

Commit

Permalink
Make caption dialog non-cancellable (issue #4939)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs committed Feb 23, 2025
1 parent 5f685df commit e35d67a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CaptionDialog : DialogFragment() {
binding.imageDescriptionText.setText(it)
}

isCancelable = true
isCancelable = false
dialog?.setCanceledOnTouchOutside(false) // Dialog is full screen anyway. But without this, taps in navbar while keyboard is up can dismiss the dialog.

val previewUri = arguments?.getParcelableCompat<Uri>(PREVIEW_URI_ARG) ?: error("Preview Uri is null")
Expand Down

0 comments on commit e35d67a

Please sign in to comment.