fixed paging load more

This commit is contained in:
Mariotaku Lee 2017-11-02 15:15:44 +08:00
parent 6ae76509bb
commit 9a21a5f4ee
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ class StatusesLivePagedListProvider(
private var lastEndKey: String? = null
override fun getKey(item: ParcelableStatus): Pagination {
val prevKey = item.extras?.prev_key
val nextKey = item.extras?.next_key
val prevKey = item.extras?.prev_key ?: item.id
val nextKey = item.extras?.next_key ?: item.id
return SinceMaxPagination().apply {
sinceId = nextKey
maxId = prevKey