Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f815e9f authored by Steve Kondik's avatar Steve Kondik
Browse files

settings: Add a RemotePreference for device-specific doze settings

 * If a device has it's own panel, we should replace the item under
   display settings instead of having to clutter up the dashboard.
 * This uses the new RemotePreference API to allow the external
   app to update the view
 * The action for this is org.cyanogenmod.settings.device.DOZE_SETTINGS

Change-Id: I7d054a2dcc5ce9b9e49defe43470a3a83852f4a5
parent 298feb22
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -89,6 +89,14 @@
                android:title="@string/doze_title"
                android:summary="@string/doze_summary" />

        <cyanogenmod.preference.RemotePreference
                android:key="doze_device_settings"
                android:title="@string/doze_title"
                android:summary="@string/doze_summary"
                cm:replacesKey="doze">
            <intent android:action="org.cyanogenmod.settings.device.DOZE_SETTINGS" />
        </cyanogenmod.preference.RemotePreference>

        <SwitchPreference
                android:key="tap_to_wake"
                android:title="@string/tap_to_wake"