From a4761f45e6effbbba94187d301d067100b45c2e3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 25 Jun 2023 21:09:41 +0200 Subject: [PATCH] update some views on the main thread --- .../calendar/pro/activities/EventActivity.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 28507736c..12a27d099 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -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) } }