dynamite8 / resources-android-dev

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

Fixes #57 Changes to ResourceDao and ResourceRepository #58

Closed JaeW closed 6 years ago

JaeW commented 6 years ago

UI component which displays records filtered by topic requires a MutableLiveData<> wrapper instead of a LiveData<> wrapper. Change ResourceDao to return proper type. ResourceRepository must expose functionality (described above), so create public method. Repository currently accommodates insertion of only one Resource entity at a time. Modify to allow multiple entity insertions at a time. Add deleteAll functionality as private method

Fixes #57 .