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

Skip to content

Fallback to the previous weather location in background

Jonathan Klee requested to merge 0000-s-background-service into master

Description

Fallback to the previous weather location in background so that the weather updates are done in background.

Small other fixes.

Screenshots

Technical details

When a service is in background, location is only updated a few times every hour (https://developer.android.com/about/versions/oreo/background-location-limits).

Indeed, when the weather service was in background, the location returned was always null.

We now fallback to the previous weather location.

Tests

Issues

10 commandments of code reviews

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

Edited by Jonathan Klee

Merge request reports

Loading