aboutsummaryrefslogtreecommitdiffstats
path: root/sdk
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-15 15:01:57 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-04-18 16:52:29 -0700
commit02a71cc24e4917c765f3a5a7a6077c755ef70db1 (patch)
tree584fd90e2f59cd4cbe63e222dd4c0aa9d5dd481d /sdk
parent18aa2f52eb32f4ff2ae403f8a12fc5effef0b420 (diff)
downloadvendor_cmsdk-02a71cc24e4917c765f3a5a7a6077c755ef70db1.zip
vendor_cmsdk-02a71cc24e4917c765f3a5a7a6077c755ef70db1.tar.gz
vendor_cmsdk-02a71cc24e4917c765f3a5a7a6077c755ef70db1.tar.bz2
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
Diffstat (limited to 'sdk')
-rwxr-xr-xsdk/src/java/cyanogenmod/weather/WeatherInfo.java2
1 files changed, 2 insertions, 0 deletions
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;
}