Settings: Add a RemotePreference for device-specific doze settings
* If a device has its own panel, we should replace the item under display settings instead of having to clutter up the dashboard. * Devices that provide Doze settings typically implement own AOD pref, so hide AOSP one. * This uses the new RemotePreference API to allow the external app to update the view. * The action for this is "org.lineageos.settings.device.DOZE_SETTINGS". Co-authored-by: Bruno Martins <bgcngm@gmail.com> Change-Id: I22fd7e6307b370807415ce2132bed4808b2befe1
This commit is contained in:
parent
2396e35310
commit
929b575a10
1 changed files with 7 additions and 0 deletions
|
|
@ -132,6 +132,13 @@
|
|||
android:summary="@string/doze_summary"
|
||||
settings:controller="com.android.settings.display.AmbientDisplayNotificationsPreferenceController" />
|
||||
|
||||
<lineageos.preference.RemotePreference
|
||||
android:key="doze_device_settings"
|
||||
android:title="@string/ambient_display_screen_title"
|
||||
settings:replacesKey="ambient_display_always_on|ambient_display_notification">
|
||||
<intent android:action="org.lineageos.settings.device.DOZE_SETTINGS" />
|
||||
</lineageos.preference.RemotePreference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<!-- Work profile settings are at the bottom with high order value to avoid users thinking that
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue