This prevents accidental closing of dialog by clicking outside of the dialog.
This commit is contained in:
parent
06343a7170
commit
c638ad7e6b
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@ fun <T> T.makeCaptionDialog(
|
||||||
.setView(dialogLayout)
|
.setView(dialogLayout)
|
||||||
.setPositiveButton(android.R.string.ok, okListener)
|
.setPositiveButton(android.R.string.ok, okListener)
|
||||||
.setNegativeButton(android.R.string.cancel, null)
|
.setNegativeButton(android.R.string.cancel, null)
|
||||||
|
.setCancelable(false)
|
||||||
.create()
|
.create()
|
||||||
|
|
||||||
val window = dialog.window
|
val window = dialog.window
|
||||||
|
|
Loading…
Reference in a new issue