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

Skip to content

fix: Issue 2334 - Parental control - Block all if no network or no data in table

Sayantan Roychowdhury requested to merge 2334-paco_block_all_if_no_network into main

Description

Send all apps in blocklist if no network or DB table is not intialized

Screenshots

Technical details

  1. Check if no network.
  2. Check if content rating table is blank.

If these two are true, block all apps.

Tests

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/2334

10 commandments of code reviews

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

Summary by CodeRabbit

  • New Features

    • Enhanced content rating retrieval with a new method for counting content ratings.
    • Improved age limit validation with streamlined logic for determining parental control status.
  • Refactor

    • Refactored AgeRatingProvider to include new utility functions for better network, authentication, and initialization checks.
    • Improved readability and maintainability of various functions.
Edited by CodeRabbitAI

Merge request reports

Loading