mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
make sure to add weekly events on the ui thread
This commit is contained in:
@ -60,7 +60,9 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
val layout = mView.findViewById(res.getIdentifier("week_column_$dayOfWeek", "id", context.packageName)) as LinearLayout
|
||||
LayoutInflater.from(context).inflate(R.layout.week_event_marker, null, false).apply {
|
||||
background = ColorDrawable(eventColor)
|
||||
layout.addView(this)
|
||||
activity.runOnUiThread {
|
||||
layout.addView(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user