From bd6ebf1e1bacc10c03cb84786eec6cd3721332c5 Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 30 Mar 2025 14:14:03 +0200 Subject: [PATCH] fix: Infinite scroll needs loading stats. --- .../amine/apps/readerforselfossv2/android/HomeActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt index 7e4aa89..e288be3 100644 --- a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt +++ b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt @@ -539,7 +539,10 @@ class HomeActivity : } private fun reloadBadges() { - if (appSettingsService.isDisplayUnreadCountEnabled() || appSettingsService.isDisplayAllCountEnabled()) { + if (appSettingsService.isInfiniteLoadingEnabled() || + appSettingsService.isDisplayUnreadCountEnabled() || + appSettingsService.isDisplayAllCountEnabled() + ) { CountingIdlingResourceSingleton.increment() CoroutineScope(Dispatchers.IO).launch { repository.reloadBadges()