refs #4678
This commit is contained in:
parent
5bdf4ab290
commit
485dd17f88
|
@ -296,13 +296,17 @@ class LoadUnloadFragment(
|
|||
lifecycleScope.launch {
|
||||
withContext(Dispatchers.IO) {
|
||||
db.expedicionDao().insert(list.filter { it.routeFk == route }
|
||||
.filter { it.addressFk == addressFk })
|
||||
)
|
||||
myList = db.expedicionDao().getAll(route) as MutableList<ExpeditionInfoLoadUnload>
|
||||
// myList = list as MutableList<ExpeditionInfoLoadUnload>
|
||||
}
|
||||
if (addressFk != 0) {
|
||||
myList =
|
||||
myList.filter { it.addressFk == addressFk } as MutableList<ExpeditionInfoLoadUnload>
|
||||
}else{
|
||||
myList.filter{
|
||||
it.routeFk == route
|
||||
}
|
||||
}
|
||||
adapter = ExpeditionLoadUnloadAdapter(myList)
|
||||
binding.expeditionloadunloadRecyclerview.adapter = adapter
|
||||
|
|
Loading…
Reference in New Issue