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
1 changed files with 5 additions and 5 deletions

View File

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