mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-26 16:41:43 +01:00
TinyWeather: Patch incoming current weather with current timestamp
This commit is contained in:
parent
f05ddd2d24
commit
ebc70b3fd5
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user