1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00

Omnijaws Weather: correctly pick todays' min and max temperature

This commit is contained in:
Daniele Gobbetti 2018-02-10 16:01:07 +01:00
parent b9c6b3bb8f
commit a29394b96e

View File

@ -100,9 +100,10 @@ public class OmniJawsObserver extends ContentObserver {
weatherSpec.currentTemp = toKelvin(c.getFloat(3));
weatherSpec.currentHumidity = (int) c.getFloat(4);
weatherSpec.timestamp = (int) (Long.valueOf(c.getString(9)) / 1000);
} else if (i == 1) {
weatherSpec.todayMinTemp = toKelvin(c.getFloat(5));
weatherSpec.todayMaxTemp = toKelvin(c.getFloat(6));
weatherSpec.timestamp = (int) (Long.valueOf(c.getString(9)) / 1000);
} else {
WeatherSpec.Forecast gbForecast = new WeatherSpec.Forecast();