[3/3] OmniGears: OmniSwitch integration bits
Change-Id: I52091ba079d8a3ba7738d95bec27a2d3f92f7442
diff --git a/res/drawable/ic_settings_power.xml b/res/drawable/ic_settings_power.xml
new file mode 100644
index 0000000..babd1be
--- /dev/null
+++ b/res/drawable/ic_settings_power.xml
@@ -0,0 +1,25 @@
+<!--
+ Copyright (C) 2016 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24.0dp"
+ android:height="24.0dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="#FF000000"
+ android:pathData="M13.0,3.0l-2.0,0.0l0.0,10.0l2.0,0.0L13.0,3.0zm4.83,2.17l-1.42,1.42C17.99,7.86 19.0,9.81 19.0,12.0c0.0,3.87 -3.13,7.0 -7.0,7.0s-7.0,-3.13 -7.0,-7.0c0.0,-2.19 1.01,-4.14 2.58,-5.42L6.17,5.17C4.23,6.82 3.0,9.26 3.0,12.0c0.0,4.97 4.03,9.0 9.0,9.0s9.0,-4.03 9.0,-9.0c0.0,-2.74 -1.23,-5.18 -3.17,-6.83z"/>
+</vector>
diff --git a/res/values/custom_arrays.xml b/res/values/custom_arrays.xml
index 46dd69a..281e25c 100644
--- a/res/values/custom_arrays.xml
+++ b/res/values/custom_arrays.xml
@@ -137,13 +137,13 @@
<string-array name="navbar_recents_style_entries" translatable="false">
<item>@string/keys_action_app_switch_card</item>
- <item>@string/keys_action_app_switch_grid</item>
+ <!--<item>@string/keys_action_app_switch_grid</item>-->
<item>@string/keys_action_omniswitch_short</item>
</string-array>
<string-array name="navbar_recents_style_values" translatable="false">
<item>0</item>
- <item>2</item>
+ <!--<item>2</item>-->
<item>1</item>
</string-array>
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
new file mode 100644
index 0000000..5272260
--- /dev/null
+++ b/res/xml/button_settings.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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/>.
+ -->
+<!-- Copyright (C) 2012 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
+
+ <PreferenceCategory
+ android:key="button_other"
+ android:title="@string/button_other_title" >
+ <ListPreference
+ android:key="navbar_recents_style"
+ android:title="@string/navbar_recents_style_title"
+ android:entries="@array/navbar_recents_style_entries"
+ android:entryValues="@array/navbar_recents_style_values"
+ android:persistent="false"/>
+ <ListPreference
+ android:key="long_press_recents_action"
+ android:title="@string/long_press_recents_action_title"
+ android:entries="@array/long_press_recents_action_entries"
+ android:entryValues="@array/long_press_recents_action_values"
+ android:persistent="false"/>
+ <PreferenceScreen
+ android:key="global_actions"
+ android:title="@string/global_actions_title"
+ android:summary="@string/global_actions_summary"
+ android:icon="@drawable/ic_settings_power"
+ android:fragment="org.omnirom.omnigears.interfacesettings.GlobalActionsSettings" />
+ </PreferenceCategory>
+</PreferenceScreen>