fix: If no home data is displayed also load data again
Description
Make sure that if no home data is present we also reload them. This fixes an issue where logging out made the home page not loading data.
Screenshots
Technical details
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2800
10 commandments of code reviews
Summary by CodeRabbit
-
New Features
- Introduced a method to check if data exists, enhancing data management in the app.
- Added a method to determine when to load new data, improving efficiency in data handling.
-
Improvements
- Enhanced loading experience by adding a delay before scrolling to the top of the UI.
- Clarified comments and improved memory management in the UI component lifecycle.
-
Bug Fixes
- Addressed potential memory leaks by nullifying the adapter in the fragment's destruction phase.
Edited by CodeRabbitAI