mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
adding a crashfix to week fragment
This commit is contained in:
@ -319,6 +319,9 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
val daysCnt = Days.daysBetween(Formatter.getDateTimeFromTS(minTS), Formatter.getDateTimeFromTS(maxTS)).days
|
||||
|
||||
activity.runOnUiThread {
|
||||
if (activity == null)
|
||||
return@runOnUiThread
|
||||
|
||||
mView.week_all_day_holder.addView(this)
|
||||
(layoutParams as LinearLayout.LayoutParams).apply {
|
||||
topMargin = mRes.getDimension(R.dimen.tiny_margin).toInt()
|
||||
|
Reference in New Issue
Block a user