This doesn't worked as expected since the itemAdapter is cleared immediately after.
As far as I can see this is not the case; the pull to refresh just calls handleDrawerData()
.
What I could do, is change the repository implementation of getTags()
and getSources()
so that…
Yes, I made a mistake. You were right in the first comment. However this behavior never update sources once they've been stored in the database.
There is no change in behavior. Before api calls were made after checking this condition: `drawerData.sources?.isEmpty() == true
This starts tracking the connectivity status before the repository is initiated; it fixes a problem with the repository not correctly executing actions in the init method.
Ops, you're right I made a mistake while changing things...
getDBTags and getDBSources are used in the home activity. It would be better in my opinion to remove this direct access to the database and let the repository check all the logical steps. I feel…