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

Skip to content
Commit 078dc236 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Refactorize weather widget implementation

Simplify WeatherUpdateService and introduce 2 workers:
- OneTimeWeatherRequestWorker
- ForceWeatherRequestWorker

WeatherUpdateService schedules every 10 seconds a
OneTimeWeatherRequestWorker that checks if a weather request
is needed according to the period set in the widget settings.
Default period has been adjusted to 15 minutes.

The widget update button triggers a ForceWeatherRequestWorker
which forces a high accuracy location request.
parent 1f8c72df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment