mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-18 15:36:03 +00:00
fix failing tests
This commit is contained in:
@@ -20,13 +20,12 @@ class DriverOverviewFragment : BaseFragment<DriverOverviewViewModel, FragmentUse
|
||||
|
||||
override fun setupView(binding: FragmentUserMainBinding) {
|
||||
listView = binding.approvalsList
|
||||
loadList()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
driverId = requireArguments().getString(USER_CONST)
|
||||
?: throw IOException("No user ID has been passed")
|
||||
viewModel.loadDriverApprovals(driverId)
|
||||
loadList()
|
||||
}
|
||||
|
||||
override fun onSuccess(data: Any?) {
|
||||
@@ -46,4 +45,10 @@ class DriverOverviewFragment : BaseFragment<DriverOverviewViewModel, FragmentUse
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun loadList() {
|
||||
driverId = requireArguments().getString(USER_CONST)
|
||||
?: throw IOException("No user ID has been passed")
|
||||
viewModel.loadDriverApprovals(driverId)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user