From ed4d063611d9f36d03a1679e773af1f5efd24734 Mon Sep 17 00:00:00 2001 From: Luis Vidal Date: Tue, 12 Apr 2016 21:01:39 -0700 Subject: Add WEATHER_TEMPERATURE_UNIT to CMSettings [1/2] Introduce WEATHER_TEMPERATURE_UNIT. This setting will be used to store the temperature unit in which the weather data will be reported. Users will be able to set this value in the weather settings menu. Each weather service provider might choose to provide the user with a way to overlay this value (for example via the settings activity that each service provider can define) Change-Id: Ib6e47c9790aba02e6c29bd7f783730efda9177f3 TICKET:CYNGNOS-2426 --- sdk/src/java/cyanogenmod/providers/CMSettings.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sdk') diff --git a/sdk/src/java/cyanogenmod/providers/CMSettings.java b/sdk/src/java/cyanogenmod/providers/CMSettings.java index 2b3b07a..e25ad96 100644 --- a/sdk/src/java/cyanogenmod/providers/CMSettings.java +++ b/sdk/src/java/cyanogenmod/providers/CMSettings.java @@ -3254,6 +3254,14 @@ public final class CMSettings { * @hide */ public static final String WIFI_AUTO_PRIORITIES_CONFIGURATION = "wifi_auto_priority"; + + /** + * Global temperature unit in which the weather data will be reported + * Valid values are: + *

{@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#CELSIUS}

+ *

{@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}

+ */ + public static final String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit"; // endregion /** -- cgit v1.1