aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/lockclock/misc/Constants.java
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2013-10-09 15:29:06 +0200
committerDanny Baumann <dannybaumann@web.de>2013-10-13 13:37:00 +0200
commitd0ea3088d7b866315e9a54e875de6caae71b48b1 (patch)
treeb78a178e620c8e01555e0e4ca67bd7ba530b90eb /src/com/cyanogenmod/lockclock/misc/Constants.java
parent1a961f9d5780f1c97270703dad20eace4c475bf6 (diff)
downloadandroid_packages_apps_LockClock-d0ea3088d7b866315e9a54e875de6caae71b48b1.tar.gz
android_packages_apps_LockClock-d0ea3088d7b866315e9a54e875de6caae71b48b1.tar.bz2
android_packages_apps_LockClock-d0ea3088d7b866315e9a54e875de6caae71b48b1.zip
Improve weather retrieval code.
- add weather provider abstraction - centralize yahoo specific bits at one place - switch to parsing JSON instead of XML - switch to using places instead of placefinder, which allows localized city names and custom location selection Change-Id: I5acfa084fda5024bd1af940a866fcdf77ef2895a
Diffstat (limited to 'src/com/cyanogenmod/lockclock/misc/Constants.java')
-rwxr-xr-xsrc/com/cyanogenmod/lockclock/misc/Constants.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/lockclock/misc/Constants.java b/src/com/cyanogenmod/lockclock/misc/Constants.java
index bb783c3..535dcb0 100755
--- a/src/com/cyanogenmod/lockclock/misc/Constants.java
+++ b/src/com/cyanogenmod/lockclock/misc/Constants.java
@@ -35,14 +35,15 @@ public class Constants {
public static final String SHOW_WEATHER = "show_weather";
public static final String WEATHER_USE_CUSTOM_LOCATION = "weather_use_custom_location";
- public static final String WEATHER_CUSTOM_LOCATION_STRING = "weather_custom_location_string";
+ public static final String WEATHER_CUSTOM_LOCATION_ID = "weather_custom_location_id";
+ public static final String WEATHER_CUSTOM_LOCATION_CITY = "weather_custom_location_city";
public static final String WEATHER_SHOW_LOCATION = "weather_show_location";
public static final String WEATHER_SHOW_TIMESTAMP = "weather_show_timestamp";
public static final String WEATHER_USE_METRIC = "weather_use_metric";
public static final String WEATHER_INVERT_LOWHIGH = "weather_invert_lowhigh";
public static final String WEATHER_REFRESH_INTERVAL = "weather_refresh_interval";
public static final String WEATHER_USE_ALTERNATE_ICONS = "weather_use_alternate_icons";
- public static final String WEATHER_WOEID = "weather_woeid";
+ public static final String WEATHER_LOCATION_ID = "weather_woeid";
public static final String WEATHER_SHOW_WHEN_MINIMIZED = "weather_show_when_minimized";
public static final String WEATHER_FONT_COLOR = "weather_font_color";
public static final String WEATHER_TIMESTAMP_FONT_COLOR = "weather_timestamp_font_color";