Only fetch intems if item caching is enabled.
This commit is contained in:
parent
d9ef301e0f
commit
8106faa45c
@ -143,10 +143,13 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
|
||||
|
||||
handleSwipeRefreshLayout()
|
||||
|
||||
|
||||
if (appSettingsService.isItemCachingEnabled()) {
|
||||
CoroutineScope(Dispatchers.Main).launch {
|
||||
repository.tryToCacheItemsAndGetNewOnes()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleSwipeRefreshLayout() {
|
||||
binding.swipeRefreshLayout.setColorSchemeResources(
|
||||
|
Loading…
Reference in New Issue
Block a user