N
Size: a a a
N
ВМ
ВМ
A
ВМ
ВМ
ВМ
ВМ
ВМ
EG
var previousState: CombinedLoadStates? = null
operationsAdapter.addLoadStateListener {
if (it.refresh is LoadState.NotLoading && previousState != null && previousState?.refresh is LoadState.Loading) {
operationsList.isVisible = operationsAdapter.itemCount != 0
placeholder.isVisible = operationsAdapter.itemCount == 0
}
if (it.refresh is LoadState.Error)
Toast.makeText(requireContext(), "", Toast.LENGTH_LONG).show()
previousState = it
}
👨
DB
👨
f
НС
DB
DB
М
М
DB