|
|
@ -272,11 +272,15 @@ class DateTimePicker : InjectingBottomSheetDialogFragment() {
|
|
|
|
if (resultCode == RESULT_OK) {
|
|
|
|
if (resultCode == RESULT_OK) {
|
|
|
|
val timestamp = data!!.getLongExtra(MyTimePickerDialog.EXTRA_TIMESTAMP, today.millis)
|
|
|
|
val timestamp = data!!.getLongExtra(MyTimePickerDialog.EXTRA_TIMESTAMP, today.millis)
|
|
|
|
returnSelectedTime(newDateTime(timestamp).millisOfDay + 1000)
|
|
|
|
returnSelectedTime(newDateTime(timestamp).millisOfDay + 1000)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
refreshButtons()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (requestCode == REQUEST_DATE) {
|
|
|
|
} else if (requestCode == REQUEST_DATE) {
|
|
|
|
if (resultCode == RESULT_OK) {
|
|
|
|
if (resultCode == RESULT_OK) {
|
|
|
|
val timestamp = data!!.getLongExtra(MyDatePickerDialog.EXTRA_TIMESTAMP, today.millis)
|
|
|
|
val timestamp = data!!.getLongExtra(MyDatePickerDialog.EXTRA_TIMESTAMP, today.millis)
|
|
|
|
returnDate(timestamp)
|
|
|
|
returnDate(timestamp)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
refreshButtons()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
super.onActivityResult(requestCode, resultCode, data)
|
|
|
|
super.onActivityResult(requestCode, resultCode, data)
|
|
|
|