LineageParts: Add 'Invert layout' to navigation bar settings
* Also remove navigation bar tuner link as AOSP
killed all its features.
Change-Id: Ic99baeee93c2463a476b7d48b8d6ed4786035b05
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 6ea63bf..8863817 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -249,7 +249,7 @@
<!-- Navigation Bar -->
<string name="navigation_bar_category">Navigation bar</string>
- <string name="navigation_bar_title">Buttons and layout</string>
+ <string name="navigation_bar_invert_layout_title">Invert layout</string>
<string name="navigation_bar_left_summary">Place the navigation bar on the left side of the screen in landscape mode</string>
<string name="navigation_bar_arrow_keys_title">Show arrow keys while typing</string>
<string name="navigation_bar_arrow_keys_summary">Display left and right cursor buttons while typing. Overrides IME switcher.</string>
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index 0df9650..8a96687 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -41,11 +41,10 @@
android:summary="@string/navigation_bar_arrow_keys_summary"
android:defaultValue="false" />
- <PreferenceScreen
- android:key="navigation_bar"
- android:title="@string/navigation_bar_title">
- <intent android:action="com.android.settings.action.NAV_BAR_TUNER" />
- </PreferenceScreen>
+ <lineageos.preference.SecureSettingSwitchPreference
+ android:key="sysui_nav_bar_inverse"
+ android:title="@string/navigation_bar_invert_layout_title"
+ android:defaultValue="false" />
<ListPreference
android:key="navigation_home_long_press"