diff options
author | Sam Mortimer <sam@mortimer.me.uk> | 2014-11-17 12:52:15 -0800 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:12:36 -0700 |
commit | 366c75943593cf39ef7c9e153bcfd8e16ae95eb4 (patch) | |
tree | 00f8c9c450858ed90ff94a0b05ab1ebed027f34d /res | |
parent | bea288bb8ed72abddcf317375236235a94d11f02 (diff) | |
download | packages_apps_Settings-366c75943593cf39ef7c9e153bcfd8e16ae95eb4.zip packages_apps_Settings-366c75943593cf39ef7c9e153bcfd8e16ae95eb4.tar.gz packages_apps_Settings-366c75943593cf39ef7c9e153bcfd8e16ae95eb4.tar.bz2 |
[2/2] Settings: Battery and Notification Lights
PS2: *) Move menu options to sounds and notification
*) Remove samm debug cruft
PS5: *) Update UI
Put together from:
Author: DvTonder <david.vantonder@gmail.com>
Date: Fri Apr 6 07:39:11 2012 -0400
Settings: Notification light(LED) settings
This commit adds the ability to configure the Notification light
color and pulse rate both for the default and a custom applications
list.
This work was done in collaboration with Marko Mihovilić (m1h4) who
wrote the initial implementation as a stand-alone application and
helped with the fixes below.
NOTE: Google Talk notifications originate from the "Google Services
Framework" so in order to override their settings you need to add
this package instead of the Google Talk package.
Change-Id: I6837210367123bc02ea27a9b7b6b3cf80c738bf1
Author: Danny Baumann <dannybaumann@web.de>
Date: Thu Nov 7 09:04:29 2013 +0100
Add back notification light settings.
Change-Id: I474a14a1b395407f5ca273a5d6a3a7f03f7e4698
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Sat Jan 4 15:52:47 2014 -0800
Settings: fix led pulsespeedoff disable behaviour
Keep led pulsespeedoff disabled if pulsespeedon is
disabled. This ensures that pulsespeedoff stays
disabled if onOffChangeable was set to false. Fixes
problem where charged led pulsespeed off looks to
be configurable in the ui and thereby creating user
confusion.
Change-Id: I6ac7f630544bf719b39e1ddcab435322975430c8
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Tue Dec 31 12:11:05 2013 -0800
[1/2] Settings: instant led test
Show LED color in realtime when configuring
notification colors.
Requires framework patch for notification
extra EXTRA_FORCE_SHOW_LIGHTS.
Change-Id: Ic7858d79cb2351c407afd547b33652a9e04ef1b9
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Sat Feb 1 18:36:15 2014 -0800
Settings LightSettingsDialog: update led on text change
Change-Id: I135f37829b9b4fb2166afac9d9531b76a62f3ef7
Author: Danny Baumann <dannybaumann@web.de>
Date: Wed Jun 25 08:56:17 2014 +0200
Deduplicate adapter-of-installed-packages code.
Change-Id: I454ba79eddaaff86233a2cc341f4c8bebe94729e
Author: Michael Bestas <mikeioannina@gmail.com>
Date: Fri Oct 17 00:48:17 2014 +0300
Fix copyright headers
Change-Id: I7934d01f89953e577c3cb074dce608d9bedd4027
Author: Michael Bestas <mikeioannina@gmail.com>
Date: Wed Oct 22 02:23:15 2014 +0300
Add support for single color notification LED (2/2)
Change-Id: I4cf21dda3d9e311146149c2ec81fe2398f5f9f87
Change-Id: Ie1203c64484c7d9bed0a6bc0b2808e69ef4bfa35
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_settings_backup_restore.png | bin | 0 -> 587 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_settings_backup_restore.png | bin | 0 -> 734 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_settings_backup_restore.png | bin | 0 -> 1025 bytes | |||
-rw-r--r-- | res/drawable-xxxhdpi/ic_settings_backup_restore.png | bin | 0 -> 1419 bytes | |||
-rw-r--r-- | res/layout/dialog_light_settings.xml | 116 | ||||
-rw-r--r-- | res/layout/preference_application_light.xml | 94 | ||||
-rw-r--r-- | res/layout/preference_icon.xml | 30 | ||||
-rw-r--r-- | res/layout/pulse_time_item.xml | 13 | ||||
-rw-r--r-- | res/values/cm_arrays.xml | 35 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 39 | ||||
-rw-r--r-- | res/xml/battery_light_settings.xml | 59 | ||||
-rw-r--r-- | res/xml/notification_light_settings.xml | 65 | ||||
-rw-r--r-- | res/xml/notification_settings.xml | 14 |
13 files changed, 449 insertions, 16 deletions
diff --git a/res/drawable-hdpi/ic_settings_backup_restore.png b/res/drawable-hdpi/ic_settings_backup_restore.png Binary files differnew file mode 100644 index 0000000..6bb2548 --- /dev/null +++ b/res/drawable-hdpi/ic_settings_backup_restore.png diff --git a/res/drawable-xhdpi/ic_settings_backup_restore.png b/res/drawable-xhdpi/ic_settings_backup_restore.png Binary files differnew file mode 100644 index 0000000..9f975d3 --- /dev/null +++ b/res/drawable-xhdpi/ic_settings_backup_restore.png diff --git a/res/drawable-xxhdpi/ic_settings_backup_restore.png b/res/drawable-xxhdpi/ic_settings_backup_restore.png Binary files differnew file mode 100644 index 0000000..d8effc6 --- /dev/null +++ b/res/drawable-xxhdpi/ic_settings_backup_restore.png diff --git a/res/drawable-xxxhdpi/ic_settings_backup_restore.png b/res/drawable-xxxhdpi/ic_settings_backup_restore.png Binary files differnew file mode 100644 index 0000000..f5773c9 --- /dev/null +++ b/res/drawable-xxxhdpi/ic_settings_backup_restore.png diff --git a/res/layout/dialog_light_settings.xml b/res/layout/dialog_light_settings.xml new file mode 100644 index 0000000..c9611ea --- /dev/null +++ b/res/layout/dialog_light_settings.xml @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2010 Daniel Nilsson + Copyright (C) 2012 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingStart="8dp" + android:paddingEnd="8dp" + android:scrollbars="vertical" + android:scrollbarStyle="outsideOverlay" + android:scrollbarDefaultDelayBeforeFade="1500" + android:scrollbarAlwaysDrawVerticalTrack="true" + android:fillViewport="true"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <com.android.settings.notificationlight.ColorPickerView + android:id="@+id/color_picker_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" /> + + <LinearLayout + android:id="@+id/color_panel_view" + android:layout_width="match_parent" + android:layout_height="40dp" + android:layout_alignStart="@id/color_picker_view" + android:layout_alignEnd="@id/color_picker_view" + android:layout_below="@id/color_picker_view" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" + android:orientation="horizontal" > + + <EditText + android:id="@+id/hex_color_input" + android:layout_width="0px" + android:maxLength="6" + android:digits="0123456789ABCDEFabcdef" + android:inputType="textNoSuggestions" + android:layout_height="match_parent" + android:layout_weight="0.5" /> + + <com.android.settings.notificationlight.ColorPanelView + android:id="@+id/color_panel" + android:layout_width="0px" + android:layout_height="match_parent" + android:layout_weight="0.5" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/speed_title_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_panel_view" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" + android:layout_marginTop="4dp" + android:orientation="vertical" > + + <View + android:id="@+id/lights_dialog_divider" + android:layout_width="match_parent" + android:layout_height="2dp" + android:background="@android:drawable/divider_horizontal_dark" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:text="@string/pulse_speed_title" + android:textAppearance="?android:attr/textAppearanceSmall" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingBottom="4dip" > + + <Spinner + android:id="@+id/on_spinner" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" /> + + <View + android:layout_width="8dip" + android:layout_height="match_parent" /> + + <Spinner + android:id="@+id/off_spinner" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" /> + </LinearLayout> + </LinearLayout> + + </RelativeLayout> +</ScrollView> diff --git a/res/layout/preference_application_light.xml b/res/layout/preference_application_light.xml new file mode 100644 index 0000000..9f9135e --- /dev/null +++ b/res/layout/preference_application_light.xml @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/app_light_pref" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:gravity="center_vertical" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:background="?android:attr/selectableItemBackground"> + + <ImageView + android:id="@android:id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="12dip" + android:padding="2dp" + android:maxWidth="36dip" + android:maxHeight="36dip" + android:adjustViewBounds="true" + android:layout_gravity="center" /> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="16dip" + android:paddingBottom="16dip"> + + <TextView + android:id="@android:id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="@android:style/TextAppearance.Material.Subhead" + android:textColor="?android:attr/textColorPrimary" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> + + <TextView + android:id="@android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@android:id/title" + android:layout_alignStart="@android:id/title" + android:visibility="gone" + android:textAlignment="viewStart" + android:textAppearance="@android:style/TextAppearance.Material.Body1" + android:textColor="?android:attr/textColorSecondary" + android:maxLines="1" /> + </RelativeLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <TextView + android:id="@+id/textViewTimeOnValue" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end" + android:textAppearance="@android:style/TextAppearance.Material.Notification.Line2" /> + + <TextView + android:id="@+id/textViewTimeOffValue" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end" + android:textAppearance="@android:style/TextAppearance.Material.Notification.Line2" /> + </LinearLayout> + + <ImageView + android:id="@+id/light_color" + android:layout_width="32dip" + android:layout_height="wrap_content" + android:layout_gravity="center"/> + +</LinearLayout> diff --git a/res/layout/preference_icon.xml b/res/layout/preference_icon.xml index 8e62508..f67cbad 100644 --- a/res/layout/preference_icon.xml +++ b/res/layout/preference_icon.xml @@ -18,21 +18,25 @@ Preference is able to place a specific widget for its particular type in the "widget_frame" layout. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+android:id/widget_frame" + android:id="@android:id/widget_frame" android:layout_width="match_parent" android:layout_height="wrap_content" - android:minHeight="56dp" + android:minHeight="?android:attr/listPreferredItemHeightSmall" android:gravity="center_vertical" - android:paddingEnd="?android:attr/scrollbarSize"> - + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:background="?android:attr/selectableItemBackground"> + <ImageView android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="6dip" - android:layout_marginEnd="6dip" - android:layout_gravity="center" - android:contentDescription="@null" /> + android:layout_marginEnd="12dip" + android:padding="2dp" + android:maxWidth="36dip" + android:maxHeight="36dip" + android:adjustViewBounds="true" + android:layout_gravity="center" /> <RelativeLayout android:layout_width="wrap_content" @@ -43,20 +47,22 @@ android:layout_marginBottom="6dip" android:layout_weight="1"> - <TextView android:id="@+android:id/title" + <TextView android:id="@android:id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="@android:style/TextAppearance.Material.Subhead" + android:textColor="?android:attr/textColorPrimary" android:ellipsize="marquee" android:fadingEdge="horizontal" /> - <TextView android:id="@+android:id/summary" + <TextView android:id="@android:id/summary" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@android:id/title" android:layout_alignStart="@android:id/title" - android:textAppearance="?android:attr/textAppearanceSmall" + android:textAppearance="@android:style/TextAppearance.Material.Body1" + android:textColor="?android:attr/textColorSecondary" android:maxLines="2" /> </RelativeLayout> diff --git a/res/layout/pulse_time_item.xml b/res/layout/pulse_time_item.xml new file mode 100644 index 0000000..56d3005 --- /dev/null +++ b/res/layout/pulse_time_item.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/textViewName" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingStart="4dp" + android:paddingEnd="4dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:textAppearance="@android:style/TextAppearance.Material.Subhead" > + +</TextView> diff --git a/res/values/cm_arrays.xml b/res/values/cm_arrays.xml index f709638..c4df71e 100644 --- a/res/values/cm_arrays.xml +++ b/res/values/cm_arrays.xml @@ -173,4 +173,39 @@ <item>Bluetooth</item> <item>NFC</item> </string-array> + + <!-- Values for the notification light pulse spinners --> + <string-array name="notification_pulse_length_entries" translatable="false"> + <item>@string/pulse_length_always_on</item> + <item>@string/pulse_length_very_short</item> + <item>@string/pulse_length_short</item> + <item>@string/pulse_length_normal</item> + <item>@string/pulse_length_long</item> + <item>@string/pulse_length_very_long</item> + </string-array> + + <string-array name="notification_pulse_length_values" translatable="false"> + <item>1</item> + <item>250</item> + <item>500</item> + <item>1000</item> + <item>2500</item> + <item>5000</item> + </string-array> + + <string-array name="notification_pulse_speed_entries" translatable="false"> + <item>@string/pulse_speed_very_fast</item> + <item>@string/pulse_speed_fast</item> + <item>@string/pulse_speed_normal</item> + <item>@string/pulse_speed_slow</item> + <item>@string/pulse_speed_very_slow</item> + </string-array> + + <string-array name="notification_pulse_speed_values" translatable="false"> + <item>250</item> + <item>500</item> + <item>1000</item> + <item>2500</item> + <item>5000</item> + </string-array> </resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 18d4bd4..61a9936 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -242,4 +242,43 @@ <string name="profile_setup_setup_triggers_description">Please select triggers which will activate this profile</string> <string name="profile_setup_actions_description">Now configure what happens when the profile is activated</string> + + <!-- Notification light dialogs --> + <string name="edit_light_settings">Edit light settings</string> + <string name="pulse_speed_title">Pulse length and speed</string> + <string name="default_time">Normal</string> + <string name="custom_time">Custom</string> + <string name="dialog_delete_title">Delete</string> + <string name="dialog_delete_message">Remove selected item?</string> + + <!-- Values for the notification light pulse spinners --> + <string name="pulse_length_always_on">Always on</string> + <string name="pulse_length_very_short">Very short</string> + <string name="pulse_length_short">Short</string> + <string name="pulse_length_normal">Normal</string> + <string name="pulse_length_long">Long</string> + <string name="pulse_length_very_long">Very long</string> + <string name="pulse_speed_very_fast">Very fast</string> + <string name="pulse_speed_fast">Fast</string> + <string name="pulse_speed_normal">Normal</string> + <string name="pulse_speed_slow">Slow</string> + <string name="pulse_speed_very_slow">Very slow</string> + + <!-- Battery light settings --> + <string name="battery_light_title">Battery light</string> + <string name="battery_low_pulse_title">Pulse if battery low</string> + <string name="battery_light_list_title">Colors</string> + <string name="battery_light_low_color_title">Battery low</string> + <string name="battery_light_medium_color_title">Charging</string> + <string name="battery_light_full_color_title">Fully charged</string> + + <!-- Lights settings screen, notification light settings --> + <string name="notification_light_title">Notification light</string> + <string name="notification_light_general_title">General</string> + <string name="notification_light_applist_title">Apps</string> + <string name="notification_light_phonelist_title">Phone</string> + <string name="notification_light_use_custom">Use custom values</string> + <string name="notification_light_default_value">Default</string> + <string name="notification_light_missed_call_title">Missed call</string> + <string name="notification_light_voicemail_title">Voicemail</string> </resources> diff --git a/res/xml/battery_light_settings.xml b/res/xml/battery_light_settings.xml new file mode 100644 index 0000000..d7e8c0b --- /dev/null +++ b/res/xml/battery_light_settings.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + + <PreferenceCategory + android:key="general_section" + android:title="@string/notification_light_general_title"> + + <com.android.settings.cyanogenmod.SystemSettingSwitchPreference + android:key="battery_light_enabled" + android:title="@string/battery_light_title" + android:defaultValue="true" /> + + <com.android.settings.cyanogenmod.SystemSettingSwitchPreference + android:key="battery_light_pulse" + android:title="@string/battery_low_pulse_title" + android:defaultValue="true" + android:dependency="battery_light_enabled" /> + + </PreferenceCategory> + + <PreferenceCategory + android:key="colors_list" + android:title="@string/battery_light_list_title" + android:dependency="battery_light_enabled" > + + <com.android.settings.notificationlight.ApplicationLightPreference + android:key="low_color" + android:title="@string/battery_light_low_color_title" + android:persistent="false" /> + + <com.android.settings.notificationlight.ApplicationLightPreference + android:key="medium_color" + android:title="@string/battery_light_medium_color_title" + android:persistent="false" /> + + <com.android.settings.notificationlight.ApplicationLightPreference + android:key="full_color" + android:title="@string/battery_light_full_color_title" + android:persistent="false" /> + + </PreferenceCategory> + +</PreferenceScreen> diff --git a/res/xml/notification_light_settings.xml b/res/xml/notification_light_settings.xml new file mode 100644 index 0000000..895a0ee --- /dev/null +++ b/res/xml/notification_light_settings.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + + <PreferenceCategory + android:key="general_section" + android:title="@string/notification_light_general_title"> + + <com.android.settings.cyanogenmod.SystemSettingSwitchPreference + android:key="notification_light_pulse" + android:title="@string/notification_light_title" /> + + <com.android.settings.notificationlight.ApplicationLightPreference + android:key="default" + android:title="@string/notification_light_default_value" + android:persistent="false" + android:dependency="notification_light_pulse" /> + + <com.android.settings.cyanogenmod.SystemSettingSwitchPreference + android:key="notification_light_pulse_custom_enable" + android:title="@string/notification_light_use_custom" + android:dependency="notification_light_pulse" /> + + </PreferenceCategory> + + <PreferenceCategory + android:key="phone_list" + android:title="@string/notification_light_phonelist_title" > + + <com.android.settings.notificationlight.ApplicationLightPreference + android:key="missed_call" + android:title="@string/notification_light_missed_call_title" + android:persistent="false" + android:dependency="notification_light_pulse_custom_enable" /> + + <com.android.settings.notificationlight.ApplicationLightPreference + android:key="voicemail" + android:title="@string/notification_light_voicemail_title" + android:persistent="false" + android:dependency="notification_light_pulse_custom_enable" /> + + </PreferenceCategory> + + <PreferenceCategory + android:key="applications_list" + android:title="@string/notification_light_applist_title" + android:dependency="notification_light_pulse_custom_enable" > + </PreferenceCategory> + +</PreferenceScreen> diff --git a/res/xml/notification_settings.xml b/res/xml/notification_settings.xml index 43fd116..114468f 100644 --- a/res/xml/notification_settings.xml +++ b/res/xml/notification_settings.xml @@ -97,10 +97,16 @@ android:title="@string/notification_section_header" > <!-- Pulse notification light --> - <SwitchPreference - android:key="notification_pulse" - android:title="@string/notification_pulse_title" - android:persistent="false" /> + <PreferenceScreen + android:key="notification_light" + android:title="@string/notification_light_title" + android:fragment="com.android.settings.notificationlight.NotificationLightSettings" /> + + <!-- Battery light --> + <PreferenceScreen + android:key="battery_light" + android:title="@string/battery_light_title" + android:fragment="com.android.settings.notificationlight.BatteryLightSettings" /> <!-- When device is locked --> <com.android.settings.DropDownPreference |