Archived
Replaced fragment switching functionality in MainActivity.kt with Navigation component, simplifying logic significantly; upgraded to AGP 8.0.1
This commit is contained in:
@@ -48,7 +48,11 @@ class EventPageFragment : AppFragment(), StudIPEventItemAdapter.OnClickListener
|
||||
currentDay = arguments?.getInt("currentDay") ?: -1
|
||||
|
||||
// Instantiate event adapter with the current day
|
||||
eventAdapter = StudIPEventItemAdapter(currentDay, this)
|
||||
eventAdapter = StudIPEventItemAdapter(
|
||||
currentDay,
|
||||
viewModel.preferenceCourseHighlighting,
|
||||
this,
|
||||
)
|
||||
|
||||
// Inflate view binding
|
||||
_binding = RecyclerViewBinding.inflate(inflater, container, false)
|
||||
|
||||
Reference in New Issue
Block a user