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

Commit 9f7dc6d5 authored by Steve Kondik's avatar Steve Kondik Committed by Arne Coucheron
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: I22fd7e6307b370807415ce2132bed4808b2befe1
parent 9139d5dd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -99,6 +99,14 @@
        android:title="@string/ambient_display_screen_title"
        android:fragment="com.android.settings.display.AmbientDisplaySettings" />

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

    <!-- Hide night mode for now
    <ListPreference
        android:key="night_mode"
+8 −0
Original line number Diff line number Diff line
@@ -86,6 +86,14 @@
            android:title="@string/ambient_display_screen_title"
            android:fragment="com.android.settings.display.AmbientDisplaySettings" />

        <lineageos.preference.RemotePreference
            android:key="doze_device_settings_battery"
            android:title="@string/ambient_display_screen_title"
            lineage:replacesKey="ambient_display_battery">
            <intent
                android:action="org.lineageos.settings.device.DOZE_SETTINGS" />
        </lineageos.preference.RemotePreference>

    </PreferenceCategory>

    <PreferenceCategory