Make dialog uncancelable

This commit is contained in:
Super12138 2024-04-13 09:39:57 +08:00
parent 76d850cb7d
commit f21ff7dba8

View file

@ -84,6 +84,7 @@ class ToDoFragment : Fragment() {
.setView(toDoDialogBinding.root)
.setPositiveButton(R.string.ok, null)
.setNegativeButton(R.string.cancel, null)
.setCancelable(false)
.show()
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {