adding a crashfix to week fragment

This commit is contained in:
tibbi 2017-02-19 23:39:36 +01:00
parent 320cc6b319
commit 681dc87b67
1 changed files with 3 additions and 0 deletions

View File

@ -319,6 +319,9 @@ class WeekFragment : Fragment(), WeeklyCalendar {
val daysCnt = Days.daysBetween(Formatter.getDateTimeFromTS(minTS), Formatter.getDateTimeFromTS(maxTS)).days val daysCnt = Days.daysBetween(Formatter.getDateTimeFromTS(minTS), Formatter.getDateTimeFromTS(maxTS)).days
activity.runOnUiThread { activity.runOnUiThread {
if (activity == null)
return@runOnUiThread
mView.week_all_day_holder.addView(this) mView.week_all_day_holder.addView(this)
(layoutParams as LinearLayout.LayoutParams).apply { (layoutParams as LinearLayout.LayoutParams).apply {
topMargin = mRes.getDimension(R.dimen.tiny_margin).toInt() topMargin = mRes.getDimension(R.dimen.tiny_margin).toInt()