update some views on the main thread

This commit is contained in:
tibbi 2023-06-25 21:09:41 +02:00
parent 8d27660671
commit a4761f45e6

View file

@ -1058,11 +1058,11 @@ class EventActivity : SimpleActivity() {
ensureBackgroundThread {
val eventType = eventTypesDB.getEventTypeWithId(mEventTypeId)
event_color_image.beVisibleIf(eventType != null)
event_color_holder.beVisibleIf(eventType != null)
event_color_divider.beVisibleIf(eventType != null)
if (eventType != null) {
runOnUiThread {
runOnUiThread {
event_color_image.beVisibleIf(eventType != null)
event_color_holder.beVisibleIf(eventType != null)
event_color_divider.beVisibleIf(eventType != null)
if (eventType != null) {
updateEventColorInfo(eventType.color)
}
}