From 9a21a5f4ee2e0ce9bc6e6c0dc2c7de33727f000b Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Thu, 2 Nov 2017 15:15:44 +0800 Subject: [PATCH] fixed paging load more --- .../mariotaku/twidere/data/StatusesLivePagedListProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/data/StatusesLivePagedListProvider.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/data/StatusesLivePagedListProvider.kt index d4f040881..d0bb88663 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/data/StatusesLivePagedListProvider.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/data/StatusesLivePagedListProvider.kt @@ -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