sberoch / RickAndMorty-AndroidArchitectureSample

A Rick And Morty simple app to show one approach to using some of the best practices in Android Development.
Apache License 2.0
452 stars 134 forks source link

reload info #2

Closed andresbelt closed 4 years ago

andresbelt commented 4 years ago

Hello, I think it's excellent the way you do the cache and the call to the server but what would you do if you delete the whole database and you want to reload the data from the network, calling again the LiveData doesn't do it, could you explain me?

thank you

sberoch commented 4 years ago

There should be a way to update the network content, totally agree! Maybe using a SwipeRefreshLayout that when triggered will call the vm and repo methods to update. Feel free to send a pull request!