From 929b575a1048840c0910251ebc6909a317ca0d29 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 14 Oct 2016 21:46:42 -0700 Subject: [PATCH] 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 Change-Id: I22fd7e6307b370807415ce2132bed4808b2befe1 --- res/xml/security_lockscreen_settings.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/res/xml/security_lockscreen_settings.xml b/res/xml/security_lockscreen_settings.xml index 9b9df3e29f0..afa328d9054 100644 --- a/res/xml/security_lockscreen_settings.xml +++ b/res/xml/security_lockscreen_settings.xml @@ -132,6 +132,13 @@ android:summary="@string/doze_summary" settings:controller="com.android.settings.display.AmbientDisplayNotificationsPreferenceController" /> + + + +