dynamite8 / resources-android-dev

Collection of resources for becoming an Android developer
7 stars 7 forks source link

Fixes #77: Loaded data from Firebase to the local DB and moved all th… #101

Closed dambadipudi closed 6 years ago

dambadipudi commented 6 years ago

Fixes #77 .

Changes proposed in this pull request: Added methods in the Repository to call the DAO methods to insert a single resource and a single topic Moved the firebase code from MainActivity to Repository and added code to insert the firebase data into the DB. Added a new LaunchActivity whose sole purpose is to load the firebase data into the local DB before calling MainActivity

dambadipudi commented 6 years ago

@JaeW I completely agree with you. I decided to let both the entities be as they were, and worked with that. I was hoping you would take care of combining both of them to have a single POJO for Resource entity in the Issue that you created for it :)