Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

refactor: homepage

Hasib Prince requested to merge 228-refactor_homepage into main

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

apps/-/issues/228

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Closes #228

Edited by Hasib Prince

Merge request reports

Loading