fix PostsRecyclerViewAdapter: evito llamar a onLoadMore cuando se realiza binding de elemento pero debido a actualizaciones del ultimo view
This commit is contained in:
parent
12344011ba
commit
e50489abf1
@ -361,9 +361,11 @@ class PostsRecyclerViewAdapter (
|
|||||||
if(totalItems != null && totalItems > 0 && !requestedNewContent) {
|
if(totalItems != null && totalItems > 0 && !requestedNewContent) {
|
||||||
if(position == totalItems - 1) {
|
if(position == totalItems - 1) {
|
||||||
requestedNewContent = true
|
requestedNewContent = true
|
||||||
|
if(payloads.isEmpty()) {
|
||||||
callback.onLoadMore()
|
callback.onLoadMore()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user