adding a crashfix to week fragment
This commit is contained in:
parent
320cc6b319
commit
681dc87b67
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue