stop the scheduling process if the date or time pickers are closed

This commit is contained in:
tibbi 2022-10-14 23:52:32 +02:00
parent 7f24e4d2a8
commit a1f6d0e5e0
1 changed files with 2 additions and 4 deletions

View File

@ -97,9 +97,8 @@ class ScheduleMessageDialog(
datePicker.minDate = System.currentTimeMillis()
show()
getButton(AlertDialog.BUTTON_NEGATIVE).apply {
text = activity.getString(R.string.back)
text = activity.getString(R.string.cancel)
setOnClickListener {
showPreview()
dismiss()
}
}
@ -116,9 +115,8 @@ class ScheduleMessageDialog(
).apply {
show()
getButton(AlertDialog.BUTTON_NEGATIVE).apply {
text = activity.getString(R.string.back)
text = activity.getString(R.string.cancel)
setOnClickListener {
showPreview()
dismiss()
}
}