Fixed a bug that would crash the app when refreshing the canteen view multiple times in quick succession. Turns out, the TabLayoutMediator only needs to be attached once.

This commit is contained in:
denizk0461
2023-04-21 14:25:19 +02:00
parent ab316d9871
commit 7a6926ff64
@@ -96,7 +96,7 @@ class CanteenFragment : Fragment() {
// TODO refresh updates
}, onFinish = {
// binding.swipeRefreshLayout.isRefreshing = false
createTabLayoutMediator()
// createTabLayoutMediator()
})
}
}