stop the scheduling process if the date or time pickers are closed
This commit is contained in:
parent
7f24e4d2a8
commit
a1f6d0e5e0
|
@ -97,9 +97,8 @@ class ScheduleMessageDialog(
|
||||||
datePicker.minDate = System.currentTimeMillis()
|
datePicker.minDate = System.currentTimeMillis()
|
||||||
show()
|
show()
|
||||||
getButton(AlertDialog.BUTTON_NEGATIVE).apply {
|
getButton(AlertDialog.BUTTON_NEGATIVE).apply {
|
||||||
text = activity.getString(R.string.back)
|
text = activity.getString(R.string.cancel)
|
||||||
setOnClickListener {
|
setOnClickListener {
|
||||||
showPreview()
|
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,9 +115,8 @@ class ScheduleMessageDialog(
|
||||||
).apply {
|
).apply {
|
||||||
show()
|
show()
|
||||||
getButton(AlertDialog.BUTTON_NEGATIVE).apply {
|
getButton(AlertDialog.BUTTON_NEGATIVE).apply {
|
||||||
text = activity.getString(R.string.back)
|
text = activity.getString(R.string.cancel)
|
||||||
setOnClickListener {
|
setOnClickListener {
|
||||||
showPreview()
|
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue