mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
TinyWeather: Patch incoming current weather with current timestamp
This commit is contained in:
@@ -36,6 +36,7 @@ public class TinyWeatherForecastGermanyReceiver extends BroadcastReceiver {
|
|||||||
WeatherSpec weatherSpec = bundle.getParcelable("WeatherSpec");
|
WeatherSpec weatherSpec = bundle.getParcelable("WeatherSpec");
|
||||||
if (weatherSpec != null) {
|
if (weatherSpec != null) {
|
||||||
Weather.getInstance().setWeatherSpec(weatherSpec);
|
Weather.getInstance().setWeatherSpec(weatherSpec);
|
||||||
|
weatherSpec.timestamp = (int) (System.currentTimeMillis() / 1000);
|
||||||
GBApplication.deviceService().onSendWeather(weatherSpec);
|
GBApplication.deviceService().onSendWeather(weatherSpec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user