Skip to content

Commit 9ff2f8c

Browse files
iKeramatNurKeinNeid
authored andcommitted
fixup! Settings: Add back battery and notification lights settings
Change-Id: I1de3f89604c3d0274f5088e1364a41c29ea7cfab
1 parent 9e54e54 commit 9ff2f8c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

res/xml/configure_notification_settings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@
204204
<!-- Notification lights -->
205205
<org.derpfest.support.preferences.SelfRemovingPreference
206206
android:key="notification_lights"
207+
android:title="@string/notification_light_title"
207208
settings:requiresConfig="@*android:bool/config_intrusiveNotificationLed"
208-
settings:replacesKey="notification_pulse" />
209+
settings:replacesKey="notification_pulse"
210+
android:fragment="com.android.settings.derpfest.notificationlight.NotificationLightSettings" />
209211

210212
<org.derpfest.support.preferences.SystemSettingSwitchPreference
211213
android:key="notification_force_non_dismissible"

res/xml/power_usage_summary.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@
6868
<!-- Battery light -->
6969
<org.derpfest.support.preferences.SelfRemovingPreference
7070
android:key="battery_lights"
71+
android:title="@string/battery_light_title"
7172
settings:requiresConfig="@*android:integer/config_deviceLightCapabilities"
72-
settings:requiresConfigMask="64" />
73+
settings:requiresConfigMask="64"
74+
android:fragment="com.android.settings.derpfest.notificationlight.BatteryLightSettings" />
7375

7476
<SwitchPreferenceCompat
7577
android:key="battery_percentage"

0 commit comments

Comments
 (0)