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 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user