From 826ffc4a60c26281c971cf07b5e69fc2ee5469e6 Mon Sep 17 00:00:00 2001 From: Ayushman Sharma Date: Sat, 9 Nov 2024 02:00:07 +0530 Subject: [PATCH] NTP-8865 | buffer condition for scratch card pagination (#13550) --- .../coin/repo/pagingsource/ScratchCardHistoryCustomPager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/navi-coin/src/main/java/com/navi/coin/repo/pagingsource/ScratchCardHistoryCustomPager.kt b/android/navi-coin/src/main/java/com/navi/coin/repo/pagingsource/ScratchCardHistoryCustomPager.kt index 2e978297a8..39e09c6bf9 100644 --- a/android/navi-coin/src/main/java/com/navi/coin/repo/pagingsource/ScratchCardHistoryCustomPager.kt +++ b/android/navi-coin/src/main/java/com/navi/coin/repo/pagingsource/ScratchCardHistoryCustomPager.kt @@ -140,7 +140,8 @@ class ScratchCardHistoryCustomPager( if ( pagerList.value.isEmpty() && data?.scratchCardHistoryList.isNullOrEmpty() && - fetchType == FetchType.EXPIRED + fetchType == FetchType.EXPIRED && + buffer.isNull() ) { _scratchCardHistoryListData.update { ScratchCardPaginatedHistoryScreenState.Empty } } else {