|
@@ -254,18 +254,18 @@ class CourseTableFragment :
|
|
|
|
|
|
override fun onViewChange(isMonthView: Boolean) {
|
|
override fun onViewChange(isMonthView: Boolean) {
|
|
if (!isMonthView) {
|
|
if (!isMonthView) {
|
|
- recyclerView.removeItemDecoration(calendarExpandDecoration)
|
|
|
|
- if (recyclerView.itemDecorationCount == 0 || recyclerView.getItemDecorationAt(0) !is CalendarShrinkDecoration) {
|
|
|
|
|
|
+ recyclerView?.removeItemDecoration(calendarExpandDecoration)
|
|
|
|
+ if (recyclerView?.itemDecorationCount == 0 || recyclerView?.getItemDecorationAt(0) !is CalendarShrinkDecoration) {
|
|
Log.e("sdfsdgsdsdasdaf", "calendarShrinkDecoration: ")
|
|
Log.e("sdfsdgsdsdasdaf", "calendarShrinkDecoration: ")
|
|
- recyclerView.addItemDecoration(calendarShrinkDecoration, 0)
|
|
|
|
- mViewBinding.refreshLayout.isEnabled = false
|
|
|
|
|
|
+ recyclerView?.addItemDecoration(calendarShrinkDecoration, 0)
|
|
|
|
+ mViewBinding?.refreshLayout?.isEnabled = false
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- recyclerView.removeItemDecoration(calendarShrinkDecoration)
|
|
|
|
- if (recyclerView.itemDecorationCount == 0 || recyclerView.getItemDecorationAt(0) !is CalendarExpandDecoration) {
|
|
|
|
|
|
+ recyclerView?.removeItemDecoration(calendarShrinkDecoration)
|
|
|
|
+ if (recyclerView?.itemDecorationCount == 0 || recyclerView?.getItemDecorationAt(0) !is CalendarExpandDecoration) {
|
|
Log.e("sdfsdgsdsdasdaf", "calendarExpandDecoration: ")
|
|
Log.e("sdfsdgsdsdasdaf", "calendarExpandDecoration: ")
|
|
- recyclerView.addItemDecoration(calendarExpandDecoration, 0)
|
|
|
|
- mViewBinding.refreshLayout.isEnabled = true
|
|
|
|
|
|
+ recyclerView?.addItemDecoration(calendarExpandDecoration, 0)
|
|
|
|
+ mViewBinding?.refreshLayout?.isEnabled = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|