Make CaptionDialog non-cancellable, fix #2626 (#2676)

This prevents accidental closing of dialog by clicking
outside of the dialog.
This commit is contained in:
Ivan Kupalov 2022-08-22 16:18:45 +02:00 committed by GitHub
parent 06343a7170
commit c638ad7e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,7 @@ fun <T> T.makeCaptionDialog(
.setView(dialogLayout)
.setPositiveButton(android.R.string.ok, okListener)
.setNegativeButton(android.R.string.cancel, null)
.setCancelable(false)
.create()
val window = dialog.window