enhancement/too-many-calls #68

Merged
AmineB merged 6 commits from enhancement/too-many-calls into master 2022-09-26 18:26:23 +00:00
Showing only changes of commit 8106faa45c - Show all commits

View File

@ -143,8 +143,11 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
handleSwipeRefreshLayout()
CoroutineScope(Dispatchers.Main).launch {
repository.tryToCacheItemsAndGetNewOnes()
if (appSettingsService.isItemCachingEnabled()) {
CoroutineScope(Dispatchers.Main).launch {
repository.tryToCacheItemsAndGetNewOnes()
}
}
}