From 02a71cc24e4917c765f3a5a7a6077c755ef70db1 Mon Sep 17 00:00:00 2001 From: Luis Vidal Date: Fri, 15 Apr 2016 15:01:57 -0700 Subject: [PATCH] Weather API: Honor the values set for today's low/high temp The vales passed to setTodaysHigh() and setTodaysLow() have no effect. This patch fixes that problem. The values provided in the Builder helper class will be actually set when the WeatherInfo object is built Change-Id: I5f47b16a56fd577349d3b3d45ea7a753262f90ea TICKET: CYNGNOS-2484 --- sdk/src/java/cyanogenmod/weather/WeatherInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/src/java/cyanogenmod/weather/WeatherInfo.java b/sdk/src/java/cyanogenmod/weather/WeatherInfo.java index aaac116..880252c 100755 --- a/sdk/src/java/cyanogenmod/weather/WeatherInfo.java +++ b/sdk/src/java/cyanogenmod/weather/WeatherInfo.java @@ -223,6 +223,8 @@ public final class WeatherInfo implements Parcelable { info.mWindSpeedUnit = this.mWindSpeedUnit; info.mTimestamp = this.mTimestamp == -1 ? System.currentTimeMillis() : this.mTimestamp; info.mForecastList = this.mForecastList; + info.mTodaysHighTemp = this.mTodaysHighTemp; + info.mTodaysLowTemp = this.mTodaysLowTemp; info.mKey = UUID.randomUUID().toString(); return info; }