Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75baf573 authored by Edward Wang's avatar Edward Wang Committed by Gerrit Code Review
Browse files

SettingsProvider: Load notification led customization defaults

Issue-Id: YAM-34
Change-Id: Icf7d311a7805cf4a90bcdcbe967a239a58e5f420
parent f95b627f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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>
+8 −0
Original line number Diff line number Diff line
@@ -2509,6 +2509,14 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            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,