mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-01 11:16:48 +01:00
fixes #860: whole day event do not ignore time
This commit is contained in:
parent
7f09e49fb7
commit
0fc9747157
@ -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) {
|
||||
hideKeyboard()
|
||||
event_start_time.beGoneIf(isChecked)
|
||||
event_end_time.beGoneIf(isChecked)
|
||||
resetTime()
|
||||
}
|
||||
|
||||
private fun shareEvent() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user