adding a crashfix to week fragment
This commit is contained in:
parent
320cc6b319
commit
681dc87b67
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue