VS
Size: a a a
VS
ОА
QH
VM
fun newInstance(connections: List<ConnectionViewModel>): SelectConnectionsFragment { //connections to ViewModel
val arrayList = ArrayList<ConnectionViewModel>(connections)
return SelectConnectionsFragment().apply {
arguments = Bundle().apply {
putSerializable("connections", arrayList)
}
}
}
presenterContract.setInitialData(connections = arguments?.getSerializable("connections") as List<ConnectionViewModel>)
QH
fun newInstance(connections: List<ConnectionViewModel>): SelectConnectionsFragment { //connections to ViewModel
val arrayList = ArrayList<ConnectionViewModel>(connections)
return SelectConnectionsFragment().apply {
arguments = Bundle().apply {
putSerializable("connections", arrayList)
}
}
}
presenterContract.setInitialData(connections = arguments?.getSerializable("connections") as List<ConnectionViewModel>)
v
П
QH
QH
v
VM
П
VM
ОА
QH
ОА
QH
VM
IZ