Canteen name will now be fetched as well; fixed an error that displayed the offers of the next day in CanteenFragment.kt

This commit is contained in:
denizk0461
2023-04-17 14:32:07 +02:00
parent 315f2f815a
commit 56cdc4c5ee
2 changed files with 9 additions and 3 deletions
@@ -28,7 +28,7 @@ class CanteenOfferPageAdapter(private var offers: List<CanteenOffer>, private va
layoutManager = LinearLayoutManager(holder.binding.root.context, LinearLayoutManager.VERTICAL, false)
val filtered = offers.filter { it.dateId == position + 1 }
val filtered = offers.filter { it.dateId == position }
adapter = CanteenOfferItemAdapter(filtered) // TODO check if empty
scheduleLayoutAnimation()
}