mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-25 16:07:47 +01:00
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…
x
Reference in New Issue
Block a user