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

Commit f8c33ab6 authored by Steve Kondik's avatar Steve Kondik Committed by Sam Mortimer
Browse files

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.
 * 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".

Change-Id: I7d054a2dcc5ce9b9e49defe43470a3a83852f4a5
parent e2a50138
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
    xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform"
    android:title="@string/display_settings"
    settings:keywords="@string/keywords_display">

@@ -111,6 +112,15 @@
        android:title="@string/doze_title"
        android:summary="@string/doze_summary" />

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

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