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()
|
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue