update some views on the main thread
This commit is contained in:
parent
8d27660671
commit
a4761f45e6
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue