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 7daea1e..29eb871 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 @@ -459,6 +459,7 @@ class HomeActivity : appendResults: Boolean, itemType: ItemType, ) { + @Suppress("detekt:ComplexCondition") if ((appendResults && items.size > 0) || (!appendResults && items.size == 0)) { CountingIdlingResourceSingleton.increment() binding.swipeRefreshLayout.isRefreshing = true @@ -539,7 +540,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()