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