fix: Infinite scroll needs loading stats.
Some checks failed
Check PR code / build (pull_request) Has been cancelled
Check PR code / translations (pull_request) Has been cancelled
Check PR code / Lint (pull_request) Has been cancelled

This commit is contained in:
Amine Bouabdallaoui 2025-03-30 14:14:03 +02:00
parent 266a157f20
commit bd6ebf1e1b

View File

@ -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()