diff --git a/app/src/main/java/org/dhis2/usescases/programEventDetail/eventList/EventListScreen.kt b/app/src/main/java/org/dhis2/usescases/programEventDetail/eventList/EventListScreen.kt index 7f7449a095..6a448b8adf 100644 --- a/app/src/main/java/org/dhis2/usescases/programEventDetail/eventList/EventListScreen.kt +++ b/app/src/main/java/org/dhis2/usescases/programEventDetail/eventList/EventListScreen.kt @@ -47,7 +47,7 @@ fun EventListScreen( val events = eventListViewModel.eventList.collectAsLazyPagingItems() when (events.loadState.refresh) { is LoadState.Error -> { - EventListIdlingResourceSingleton.decrement() + // no-op } LoadState.Loading -> { Box( @@ -100,8 +100,8 @@ fun EventListScreen( } } } - EventListIdlingResourceSingleton.decrement() } } + EventListIdlingResourceSingleton.decrement() } }