cmsdk: Move STATUS_BAR_SHOW_WEATHER to CMSettings.

Change-Id: I792e8d04c1b70749db78f0bd5142d489aebd6d51
This commit is contained in:
Adnan Begovic 2015-11-11 12:38:26 -08:00
parent 6694ce0ca0
commit 063c9854b2
2 changed files with 14 additions and 0 deletions

View File

@ -640,6 +640,13 @@ public class CMSettingsProvider extends ContentProvider {
*/ */
public static final String DOUBLE_TAP_SLEEP_GESTURE = public static final String DOUBLE_TAP_SLEEP_GESTURE =
CMSettings.System.DOUBLE_TAP_SLEEP_GESTURE; CMSettings.System.DOUBLE_TAP_SLEEP_GESTURE;
/**
* Boolean value on whether to show weather in the statusbar
* @hide
*/
public static final String STATUS_BAR_SHOW_WEATHER =
CMSettings.System.STATUS_BAR_SHOW_WEATHER;
} }
/** /**
@ -742,6 +749,8 @@ public class CMSettingsProvider extends ContentProvider {
CMSettings.System.LIVE_DISPLAY_HINTED); CMSettings.System.LIVE_DISPLAY_HINTED);
systemToCmSettingsMap.put(LegacyCMSettings.DOUBLE_TAP_SLEEP_GESTURE, systemToCmSettingsMap.put(LegacyCMSettings.DOUBLE_TAP_SLEEP_GESTURE,
CMSettings.System.DOUBLE_TAP_SLEEP_GESTURE); CMSettings.System.DOUBLE_TAP_SLEEP_GESTURE);
systemToCmSettingsMap.put(LegacyCMSettings.STATUS_BAR_SHOW_WEATHER,
CMSettings.System.STATUS_BAR_SHOW_WEATHER);
int rowsMigrated = migrateCMSettingsForTable(userId, int rowsMigrated = migrateCMSettingsForTable(userId,
CMDatabaseHelper.CMTableNames.TABLE_SYSTEM, systemToCmSettingsMap); CMDatabaseHelper.CMTableNames.TABLE_SYSTEM, systemToCmSettingsMap);

View File

@ -1032,6 +1032,11 @@ public final class CMSettings {
*/ */
public static final String DOUBLE_TAP_SLEEP_GESTURE = "double_tap_sleep_gesture"; public static final String DOUBLE_TAP_SLEEP_GESTURE = "double_tap_sleep_gesture";
/**
* Boolean value on whether to show weather in the statusbar
* @hide
*/
public static final String STATUS_BAR_SHOW_WEATHER = "status_bar_show_weather";
} }
/** /**