[1/2] OmniGears: move nav gestures on separate page
Change-Id: I922e45e0713be2219ad296080181ca124d966141
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index 12466d1..94684b1 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -58,11 +58,6 @@
android:title="@string/navigation_bar_show_title"
android:summary="@string/navigation_bar_show_summary"
android:persistent="false" />
- <org.omnirom.omnilib.preference.SystemSettingSwitchPreference
- android:key="use_bottom_gesture_navigation"
- android:title="@string/use_bottom_gesture_title"
- android:summary="@string/use_bottom_gesture_summary"
- android:defaultValue="false" />
<SwitchPreference
android:key="hardware_keys_disable"
android:title="@string/hardware_keys_disable_title"
diff --git a/res/xml/gesture_settings.xml b/res/xml/gesture_settings.xml
new file mode 100644
index 0000000..1cbce8a
--- /dev/null
+++ b/res/xml/gesture_settings.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The OmniROM Project
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ -->
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ android:key="gesture_settings"
+ android:title="@string/gesture_settings_title" >
+
+ <org.omnirom.omnilib.preference.SystemSettingSwitchPreference
+ android:key="use_bottom_gesture_navigation"
+ android:title="@string/use_bottom_gesture_title"
+ android:summary="@string/use_bottom_gesture_summary"
+ android:defaultValue="false" />
+
+</PreferenceScreen>
diff --git a/res/xml/omni_dashboard_fragment.xml b/res/xml/omni_dashboard_fragment.xml
index 9a9d4e5..c63c1ed 100644
--- a/res/xml/omni_dashboard_fragment.xml
+++ b/res/xml/omni_dashboard_fragment.xml
@@ -72,16 +72,6 @@
android:targetClass="org.omnirom.omnibrain.OmniBrainActivity" />
</Preference>
- <!--<Preference
- android:key="weather_service_settings"
- android:icon="@drawable/ic_qs_weather_default_on"
- android:title="@string/weather_config_title"
- android:summary="@string/weather_config_summary" >
- <intent android:action="android.intent.action.MAIN"
- android:targetPackage="org.omnirom.omnijaws"
- android:targetClass="org.omnirom.omnijaws.SettingsActivityService" />
- </Preference>-->
-
<Preference
android:key="omnijaws_settings"
android:icon="@drawable/ic_qs_weather_default_on"
@@ -89,9 +79,15 @@
android:fragment="org.omnirom.omnigears.moresettings.OmniJawsSettings" />
<Preference
+ android:key="gesture_settings"
+ android:icon="@drawable/ic_settings_gestures"
+ android:title="@string/gesture_settings_title"
+ android:fragment="org.omnirom.omnigears.GestureSettings" />
+
+ <Preference
android:key="more_settings"
android:title="@string/more_settings_title"
android:icon="@drawable/ic_settings_more"
android:fragment="org.omnirom.omnigears.moresettings.MoreSettings"
- android:order="10" />
+ android:order="11" />
</PreferenceScreen>