refactor: homepage
Description
When homepage data is updated, it checks whether there is any change. If there is no change, UI doesn't refresh data. In this MR, We have refactored this part.
Technical details
Before, HomeFragment
received data from ViewModel through livedata, Fragment checked for any change of data, if any changes were found then fragment refreshed the recyclerview
. Now After refactoring, ViewModel
checks for any changes before sending the data to UI through livedata
.
So, In short, Before UI component checked the changes of data, now ViewModel checks the changes of data before passing to the UI layer.
Tests
Issues
10 commandments of code reviews
Closes #228