diff options
author | Danesh M <daneshm90@gmail.com> | 2014-09-04 10:00:12 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2014-09-04 10:00:50 -0700 |
commit | fdb3640e249c25155f2f1f52a85be43377a8b7a3 (patch) | |
tree | 7f9cd5bee7298cfde9e5d3c19488274240a99eac /src/com/cyanogenmod/lockclock/weather/WeatherInfo.java | |
parent | 8239598887291668d280975894ff623fc0191b5e (diff) | |
download | android_packages_apps_LockClock-fdb3640e249c25155f2f1f52a85be43377a8b7a3.tar.gz android_packages_apps_LockClock-fdb3640e249c25155f2f1f52a85be43377a8b7a3.tar.bz2 android_packages_apps_LockClock-fdb3640e249c25155f2f1f52a85be43377a8b7a3.zip |
LockClock : Return condition code as part of query
Change-Id: Ide9be5cd181576e2f61927c5027cfa4724300b90
Diffstat (limited to 'src/com/cyanogenmod/lockclock/weather/WeatherInfo.java')
-rwxr-xr-x | src/com/cyanogenmod/lockclock/weather/WeatherInfo.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/lockclock/weather/WeatherInfo.java b/src/com/cyanogenmod/lockclock/weather/WeatherInfo.java index b7c09d5..7ad4339 100755 --- a/src/com/cyanogenmod/lockclock/weather/WeatherInfo.java +++ b/src/com/cyanogenmod/lockclock/weather/WeatherInfo.java @@ -99,6 +99,10 @@ public class WeatherInfo { public String getCondition(Context context) { return WeatherInfo.getCondition(context, conditionCode, condition); } + + public int getConditionCode() { + return conditionCode; + } } public int getConditionResource(String set) { @@ -125,6 +129,10 @@ public class WeatherInfo { return getCondition(mContext, conditionCode, condition); } + public int getConditionCode() { + return conditionCode; + } + private static String getCondition(Context context, int conditionCode, String condition) { final Resources res = context.getResources(); final int resId = res.getIdentifier("weather_" + conditionCode, "string", context.getPackageName()); |