adding a crashfix to week fragment

This commit is contained in:
tibbi 2017-02-19 23:39:36 +01:00
parent 320cc6b319
commit 681dc87b67

View file

@ -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()