Make dialog uncancelable
This commit is contained in:
parent
76d850cb7d
commit
f21ff7dba8
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ class ToDoFragment : Fragment() {
|
||||||
.setView(toDoDialogBinding.root)
|
.setView(toDoDialogBinding.root)
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
|
.setCancelable(false)
|
||||||
.show()
|
.show()
|
||||||
|
|
||||||
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue