Settings: Add battery and notification lights settings

Change-Id: Ia5f635d2a493a859068af3d6b7502cc6d3db5893
This commit is contained in:
Sam Mortimer
2017-10-06 22:01:05 -07:00
committed by Michael Bestas
parent a61e80f580
commit 60c766b551
2 changed files with 11 additions and 0 deletions

View File

@@ -228,5 +228,10 @@
android:summary="@string/notification_assistant_summary"
settings:controller="com.android.settings.notification.NotificationAssistantPreferenceController"/>
<!-- Notification lights -->
<lineageos.preference.LineagePartsPreference
android:key="notification_lights"
settings:requiresConfig="@*android:bool/config_intrusiveNotificationLed"
settings:replacesKey="notification_pulse" />
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -68,6 +68,12 @@
settings:keywords="@string/keywords_battery_adaptive_preferences" />
</PreferenceCategory>
<!-- Battery light -->
<lineageos.preference.LineagePartsPreference
android:key="battery_lights"
settings:requiresConfig="@*lineageos.platform:integer/config_deviceLightCapabilities"
settings:requiresConfigMask="64" />
<SwitchPreferenceCompat
android:key="status_bar_show_battery_percent"
android:title="@string/battery_percentage"