Last active
April 30, 2018 12:23
-
-
Save tpakis/674e551600dc01c127864ffea9211a22 to your computer and use it in GitHub Desktop.
Repository fetchData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void fetchData(){ | |
List<Recipe> loadingList = null; | |
if (recipesListObservable.getValue()!=null){ | |
loadingList=recipesListObservable.getValue().data; | |
} | |
recipesListObservable.setValue(Resource.loading(loadingList)); | |
loadAllRecipesFromDB(); | |
getRecipesFromWeb(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment