From 429782db9fbcf4e3ce0cd7b573b314e7d3beb91a Mon Sep 17 00:00:00 2001 From: Ayushman Sharma Date: Wed, 4 Dec 2024 17:29:46 +0530 Subject: [PATCH] TP-17366 | Custom pager alter data fix (#13933) --- .../coin/repo/pagingsource/ScratchCardHistoryCustomPager.kt | 2 +- 1 file changed, 1 insertion(+), 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 39e09c6bf9..a13088acec 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 @@ -179,7 +179,7 @@ class ScratchCardHistoryCustomPager( // alter data if total size is odd if (alterData && list.isNotEmpty()) { - buffer = list.removeLast() + buffer = list.removeAt(list.lastIndex) } return list }