mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-02 20:13:36 +02:00
Omnijaws Weather: correctly pick todays' min and max temperature
This commit is contained in:
parent
b9c6b3bb8f
commit
a29394b96e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user