From d977ffa305e6b83e3720ca42a508012919a7174b Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Mon, 9 Nov 2015 18:13:11 -0800 Subject: [PATCH] CMSettingsProvider: Make sure to migrate proxmity settings. Change-Id: I434a88220191a6491f6e0f001e72a26a45f8043f --- .../cmsettings/CMSettingsProvider.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java index 4906a75..e01d3fb 100644 --- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java +++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java @@ -482,6 +482,18 @@ public class CMSettingsProvider extends ContentProvider { * @hide */ public static final String BATTERY_LIGHT_FULL_COLOR = "battery_light_full_color"; + + /** + * Sprint MWI Quirk: Show message wait indicator notifications + * @hide + */ + public static final String ENABLE_MWI_NOTIFICATION = "enable_mwi_notification"; + + /** + * Check the proximity sensor during wakeup + * @hide + */ + public static final String PROXIMITY_ON_WAKE = "proximity_on_wake"; } /** @@ -544,6 +556,10 @@ public class CMSettingsProvider extends ContentProvider { CMSettings.System.BATTERY_LIGHT_MEDIUM_COLOR); systemToCmSettingsMap.put(LegacyCMSettings.BATTERY_LIGHT_FULL_COLOR, CMSettings.System.BATTERY_LIGHT_FULL_COLOR); + systemToCmSettingsMap.put(LegacyCMSettings.ENABLE_MWI_NOTIFICATION, + CMSettings.System.ENABLE_MWI_NOTIFICATION); + systemToCmSettingsMap.put(LegacyCMSettings.PROXIMITY_ON_WAKE, + CMSettings.System.PROXIMITY_ON_WAKE); int rowsMigrated = migrateCMSettingsForTable(userId, CMDatabaseHelper.CMTableNames.TABLE_SYSTEM, systemToCmSettingsMap);