aboutsummaryrefslogtreecommitdiffstats
path: root/packages/CMSettingsProvider/src
diff options
context:
space:
mode:
authorEdward Wang <ewang@cyngn.com>2016-01-13 14:55:38 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-13 16:12:45 -0800
commitb9f80b66fded99fd37dc4a0d55ab750a1fc59f18 (patch)
treeff1e9aede12a05ce3ebc5314a19a65b20f3b340d /packages/CMSettingsProvider/src
parentbf9cc6dfe14146493d7d8a1f469570dc21a20f0f (diff)
downloadvendor_cmsdk-b9f80b66fded99fd37dc4a0d55ab750a1fc59f18.zip
vendor_cmsdk-b9f80b66fded99fd37dc4a0d55ab750a1fc59f18.tar.gz
vendor_cmsdk-b9f80b66fded99fd37dc4a0d55ab750a1fc59f18.tar.bz2
cmsdk: Load notification led customization defaults
Issue-Id: YAM-34 Change-Id: I67395465eb830ae994d8d796a4dbdae08ade5b01
Diffstat (limited to 'packages/CMSettingsProvider/src')
-rw-r--r--packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java
index ce4c4a2..07600ca 100644
--- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java
+++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java
@@ -257,6 +257,15 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
loadIntegerSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.ENABLE_PEOPLE_LOOKUP,
R.integer.def_people_lookup);
+
+
+ loadBooleanSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
+ R.bool.def_notification_pulse_custom_enable);
+
+ if (mContext.getResources().getBoolean(R.bool.def_notification_pulse_custom_enable)) {
+ loadStringSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
+ R.string.def_notification_pulse_custom_value);
+ }
}
private void loadGlobalSettings(SQLiteDatabase db) {