Merge pull request #862 from k0ur0x/develop
fixes #860: whole day event do not ignore time
This commit is contained in:
commit
d4ceab64ca
|
@ -802,10 +802,19 @@ class EventActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun resetTime() {
|
||||||
|
mEventStartDateTime = mEventStartDateTime.hourOfDay().setCopy(0).minuteOfDay().setCopy(0)
|
||||||
|
mEventEndDateTime = mEventEndDateTime.hourOfDay().setCopy(0).minuteOfDay().setCopy(0)
|
||||||
|
updateStartTimeText()
|
||||||
|
updateEndTimeText()
|
||||||
|
checkStartEndValidity()
|
||||||
|
}
|
||||||
|
|
||||||
private fun toggleAllDay(isChecked: Boolean) {
|
private fun toggleAllDay(isChecked: Boolean) {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
event_start_time.beGoneIf(isChecked)
|
event_start_time.beGoneIf(isChecked)
|
||||||
event_end_time.beGoneIf(isChecked)
|
event_end_time.beGoneIf(isChecked)
|
||||||
|
resetTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun shareEvent() {
|
private fun shareEvent() {
|
||||||
|
|
Loading…
Reference in New Issue