stop the scheduling process if the date or time pickers are closed
This commit is contained in:
parent
7f24e4d2a8
commit
a1f6d0e5e0
1 changed files with 2 additions and 4 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue