add a helper function for updating start date and time
This commit is contained in:
parent
c6082a5ac4
commit
858396a36d
|
@ -73,10 +73,8 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||
|
||||
checkReminderTexts()
|
||||
updateRepetitionText()
|
||||
updateStartDateText()
|
||||
updateStartTimeText()
|
||||
updateEndDateText()
|
||||
updateEndTimeText()
|
||||
updateStartTexts()
|
||||
updateEndTexts()
|
||||
updateEventType()
|
||||
|
||||
event_start_date.setOnClickListener { setupStartDate() }
|
||||
|
@ -463,6 +461,11 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||
}
|
||||
}
|
||||
|
||||
private fun updateStartTexts() {
|
||||
updateStartDateText()
|
||||
updateStartTimeText()
|
||||
}
|
||||
|
||||
private fun updateStartDateText() {
|
||||
event_start_date.text = Formatter.getDate(applicationContext, mEventStartDateTime)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue