Skip to content

Commit

Permalink
SettingsProvider: Load notification led customization defaults
Browse files Browse the repository at this point in the history
Issue-Id: YAM-34
Change-Id: Icf7d311a7805cf4a90bcdcbe967a239a58e5f420
  • Loading branch information
edwardwa authored and Gerrit Code Review committed Jan 8, 2016
1 parent f95b627 commit 75baf57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/SettingsProvider/res/values/defaults.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
pending notification -->
<bool name="def_notification_pulse">true</bool>

<!-- Default value for notification LED customization -->
<bool name="def_notification_pulse_custom_enable">false</bool>
<string name="def_notification_pulse_custom_value"></string>

<!-- Default value for the notification LEDs brightness
on devices equiped with configurable LED controller -->
<integer name="def_notification_brightness_level">255</integer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2509,6 +2509,14 @@ private void loadSystemSettings(SQLiteDatabase db) {
loadBooleanSetting(stmt, Settings.System.NOTIFICATION_LIGHT_PULSE,
R.bool.def_notification_pulse);

loadBooleanSetting(stmt, Settings.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(stmt,Settings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
R.string.def_notification_pulse_custom_value);
}

loadUISoundEffectsSettings(stmt);

loadIntegerSetting(stmt, Settings.System.POINTER_SPEED,
Expand Down

0 comments on commit 75baf57

Please sign in to comment.