diff options
Diffstat (limited to 'packages/CMSettingsProvider')
-rw-r--r-- | packages/CMSettingsProvider/res/values/defaults.xml | 8 | ||||
-rw-r--r-- | packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/packages/CMSettingsProvider/res/values/defaults.xml b/packages/CMSettingsProvider/res/values/defaults.xml index b9b0601..c15fa22 100644 --- a/packages/CMSettingsProvider/res/values/defaults.xml +++ b/packages/CMSettingsProvider/res/values/defaults.xml @@ -62,4 +62,12 @@ <!-- Default for CMSettings.Global.POWER_NOTIFICATIONS_RINGTONE --> <string name="def_power_notifications_ringtone" translatable="false">content://settings/system/notification_sound</string> + + <!-- Default value for the notification LEDs brightness + on devices equiped with configurable LED controller --> + <integer name="def_notification_brightness_level">255</integer> + + <!-- Default value for whether or not to use multiple notification LEDs + on devices equiped with more than one LED --> + <bool name="def_notification_multiple_leds">false</bool> </resources>
\ No newline at end of file diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java index 97b9c29..9229c7a 100644 --- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java +++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java @@ -240,6 +240,12 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{ loadStringSetting(db, CMTableNames.TABLE_GLOBAL, CMSettings.Global.POWER_NOTIFICATIONS_RINGTONE, R.string.def_power_notifications_ringtone); + + loadIntegerSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL, + R.integer.def_notification_brightness_level); + + loadBooleanSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE, + R.bool.def_notification_multiple_leds); } /** |