Merge pull request #862 from k0ur0x/develop

fixes #860: whole day event do not ignore time
This commit is contained in:
Tibor Kaputa 2019-05-04 20:04:51 +02:00 committed by GitHub
commit d4ceab64ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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() {