fix(editEvent): Check the duration button on duration events

This commit is contained in:
Peter Vacho 2025-01-05 19:17:53 +01:00
parent bd64a928ae
commit 16811466d7
Signed by: school
GPG key ID: 8CFC3837052871B4
2 changed files with 2 additions and 0 deletions

View file

@ -109,10 +109,12 @@ class CreateEventActivity : AppCompatActivity() {
txtStartTime.setText(formatDateTime(startDateTime)) txtStartTime.setText(formatDateTime(startDateTime))
if (endDateTime != startDateTime) { if (endDateTime != startDateTime) {
eventTypeToggleGroup.check(R.id.btnDurationEvent)
instantEvent = false instantEvent = false
txtEndTime.visibility = View.VISIBLE txtEndTime.visibility = View.VISIBLE
txtEndTime.setText(formatDateTime(endDateTime)) txtEndTime.setText(formatDateTime(endDateTime))
} else { } else {
eventTypeToggleGroup.check(R.id.btnInstantEvent)
instantEvent = true instantEvent = true
endDateTime = null endDateTime = null
txtEndTime.visibility = View.GONE txtEndTime.visibility = View.GONE

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 39 KiB