Skip to content

Commit

Permalink
Make important dialog non cancelable
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Nov 2, 2022
1 parent 7d40be6 commit 825a5ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/kotlin/com/cyb3rko/flashdim/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ internal fun Context.showDialog(
val builder = MaterialAlertDialogBuilder(this)
.setTitle(title)
.setMessage(message)
.setCancelable(cancelable)

if (actionMessage.isNotBlank()) {
builder.setPositiveButton(actionMessage) { _, _ ->
Expand Down

0 comments on commit 825a5ed

Please sign in to comment.