aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-12 21:01:39 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-04-13 12:45:25 -0700
commited4d063611d9f36d03a1679e773af1f5efd24734 (patch)
treee1afc785e3545d1f6f890d468f21cd15c1bb52e0
parent10da08aa5e6982dcdbdb099c1bc27c3a3ac67e3f (diff)
downloadvendor_cmsdk-ed4d063611d9f36d03a1679e773af1f5efd24734.zip
vendor_cmsdk-ed4d063611d9f36d03a1679e773af1f5efd24734.tar.gz
vendor_cmsdk-ed4d063611d9f36d03a1679e773af1f5efd24734.tar.bz2
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
-rw-r--r--api/cm_current.txt1
-rw-r--r--sdk/src/java/cyanogenmod/providers/CMSettings.java8
-rw-r--r--system-api/cm_system-current.txt1
3 files changed, 10 insertions, 0 deletions
diff --git a/api/cm_current.txt b/api/cm_current.txt
index 423eefb..f1652d3 100644
--- a/api/cm_current.txt
+++ b/api/cm_current.txt
@@ -867,6 +867,7 @@ package cyanogenmod.providers {
method public static boolean putString(android.content.ContentResolver, java.lang.String, java.lang.String);
field public static final android.net.Uri CONTENT_URI;
field public static final java.lang.String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_global_version";
+ field public static final java.lang.String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit";
}
public static final class CMSettings.Secure extends android.provider.Settings.NameValueTable {
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:
+ * <p>{@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#CELSIUS}</p>
+ * <p>{@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}</p>
+ */
+ public static final String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit";
// endregion
/**
diff --git a/system-api/cm_system-current.txt b/system-api/cm_system-current.txt
index 423eefb..f1652d3 100644
--- a/system-api/cm_system-current.txt
+++ b/system-api/cm_system-current.txt
@@ -867,6 +867,7 @@ package cyanogenmod.providers {
method public static boolean putString(android.content.ContentResolver, java.lang.String, java.lang.String);
field public static final android.net.Uri CONTENT_URI;
field public static final java.lang.String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_global_version";
+ field public static final java.lang.String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit";
}
public static final class CMSettings.Secure extends android.provider.Settings.NameValueTable {