mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
update some views on the main thread
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user