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

Commit 9df2a41e authored by Bruno Martins's avatar Bruno Martins
Browse files

ButtonSettings: Add a RemotePreference for device-specific panel

 * In case a device provides its own panel for extra buttons
   settings, place it at the bottom of the Button Settings screen.
   Back in N, that used to go directly to the Settings dashboard,
   but no longer makes sense in O.

 * This uses the RemotePreference API to allow the external app
   to update the view and the action for this is:

     "org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS"

Change-Id: If071eaad8061838a7cddea4fe1df3308f2f9ec84
parent 14195471
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -212,6 +212,8 @@
    <string name="volume_answer_call_summary">Answer incoming calls by pressing the volume buttons</string>
    <string name="home_answer_call_title">Answer call</string>
    <string name="home_answer_call_summary">Answer incoming calls by pressing the home button</string>
    <string name="extras_title">Extras</string>
    <string name="additional_buttons_title">Additional buttons</string>

    <!-- Key backlight -->
    <string name="button_backlight_title">Backlight</string>
+14 −0
Original line number Diff line number Diff line
@@ -302,4 +302,18 @@
            android:summary="@string/swap_volume_buttons_summary" />
    </PreferenceCategory>

    <PreferenceCategory
        android:key="extras_category"
        android:title="@string/extras_title" >

        <lineageos.preference.RemotePreference
            android:key="additional_buttons"
            android:title="@string/additional_buttons_title"
            lineage:requiresAction="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS">
            <intent
                android:action="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS" />
        </lineageos.preference.RemotePreference>

    </PreferenceCategory>

</PreferenceScreen>