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

Skip to content

fix: If no home data is displayed also load data again

Jonathan Klee requested to merge 2800-u-fix-regression-when-logout into main

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

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

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

Merge request reports

Loading