add a helper function for updating start date and time

This commit is contained in:
tibbi 2017-05-21 21:06:06 +02:00
parent c6082a5ac4
commit 858396a36d
1 changed files with 7 additions and 4 deletions

View File

@ -73,10 +73,8 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
checkReminderTexts() checkReminderTexts()
updateRepetitionText() updateRepetitionText()
updateStartDateText() updateStartTexts()
updateStartTimeText() updateEndTexts()
updateEndDateText()
updateEndTimeText()
updateEventType() updateEventType()
event_start_date.setOnClickListener { setupStartDate() } event_start_date.setOnClickListener { setupStartDate() }
@ -463,6 +461,11 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
} }
} }
private fun updateStartTexts() {
updateStartDateText()
updateStartTimeText()
}
private fun updateStartDateText() { private fun updateStartDateText() {
event_start_date.text = Formatter.getDate(applicationContext, mEventStartDateTime) event_start_date.text = Formatter.getDate(applicationContext, mEventStartDateTime)
} }