fix(editEvent): Check the duration button on duration events
This commit is contained in:
parent
bd64a928ae
commit
16811466d7
|
@ -109,10 +109,12 @@ class CreateEventActivity : AppCompatActivity() {
|
|||
|
||||
txtStartTime.setText(formatDateTime(startDateTime))
|
||||
if (endDateTime != startDateTime) {
|
||||
eventTypeToggleGroup.check(R.id.btnDurationEvent)
|
||||
instantEvent = false
|
||||
txtEndTime.visibility = View.VISIBLE
|
||||
txtEndTime.setText(formatDateTime(endDateTime))
|
||||
} else {
|
||||
eventTypeToggleGroup.check(R.id.btnInstantEvent)
|
||||
instantEvent = true
|
||||
endDateTime = null
|
||||
txtEndTime.visibility = View.GONE
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 39 KiB |
Loading…
Reference in a new issue