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))
|
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 |
Loading…
Reference in a new issue