Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2008 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Steve Kondik | 165ebdf | 2016-10-07 00:17:49 -0700 | [diff] [blame] | 17 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 18 | xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform" |
Steve Kondik | 165ebdf | 2016-10-07 00:17:49 -0700 | [diff] [blame] | 19 | android:key="button_settings" |
| 20 | android:title="@string/button_pref_title"> |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 21 | |
| 22 | <SwitchPreference |
| 23 | android:key="disable_nav_keys" |
| 24 | android:title="@string/disable_navkeys_title" |
| 25 | android:summary="@string/disable_navkeys_summary" |
| 26 | android:defaultValue="false" /> |
| 27 | |
Sam Mortimer | f83ce0e | 2017-09-13 15:31:56 -0700 | [diff] [blame] | 28 | <!-- |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 29 | <org.lineageos.lineageparts.input.ButtonBacklightBrightness |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 30 | android:key="button_backlight" |
| 31 | android:title="@string/button_backlight_title" |
| 32 | android:dialogTitle="@string/button_backlight_title" |
| 33 | android:persistent="false" /> |
Sam Mortimer | f83ce0e | 2017-09-13 15:31:56 -0700 | [diff] [blame] | 34 | --> |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 35 | |
| 36 | <PreferenceCategory |
| 37 | android:key="navigation_bar_category" |
| 38 | android:title="@string/navigation_bar_category" > |
| 39 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 40 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 41 | android:key="navigation_bar_menu_arrow_keys" |
| 42 | android:title="@string/navigation_bar_arrow_keys_title" |
| 43 | android:summary="@string/navigation_bar_arrow_keys_summary" |
| 44 | android:defaultValue="false" /> |
| 45 | |
| 46 | <PreferenceScreen |
| 47 | android:key="navigation_bar" |
| 48 | android:title="@string/navigation_bar_title"> |
| 49 | <intent android:action="com.android.settings.action.NAV_BAR_TUNER" /> |
| 50 | </PreferenceScreen> |
| 51 | |
| 52 | <ListPreference |
Sam Mortimer | c1be604 | 2016-10-29 12:25:19 -0700 | [diff] [blame] | 53 | android:key="navigation_home_long_press" |
| 54 | android:dialogTitle="@string/navigation_bar_home_long_press_title" |
| 55 | android:title="@string/navigation_bar_home_long_press_title" |
| 56 | android:entries="@array/hardware_keys_action_entries" |
| 57 | android:entryValues="@array/hardware_keys_action_values" |
| 58 | android:persistent="false" /> |
| 59 | |
| 60 | <ListPreference |
| 61 | android:key="navigation_home_double_tap" |
| 62 | android:dialogTitle="@string/navigation_bar_home_double_tap_title" |
| 63 | android:title="@string/navigation_bar_home_double_tap_title" |
| 64 | android:entries="@array/hardware_keys_action_entries" |
| 65 | android:entryValues="@array/hardware_keys_action_values" |
| 66 | android:persistent="false" /> |
| 67 | |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 68 | </PreferenceCategory> |
| 69 | |
| 70 | <PreferenceCategory |
| 71 | android:key="power_key" |
| 72 | android:title="@string/hardware_keys_power_key_title" > |
| 73 | |
| 74 | <PreferenceScreen |
| 75 | android:key="power_menu" |
| 76 | android:title="@string/power_menu_title" |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 77 | android:fragment="org.lineageos.lineageparts.input.PowerMenuActions" /> |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 78 | |
| 79 | <SwitchPreference |
| 80 | android:key="power_end_call" |
| 81 | android:title="@string/power_end_call_title" |
| 82 | android:summary="@string/power_end_call_summary" |
| 83 | android:persistent="false"/> |
| 84 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 85 | <lineageos.preference.LineageSystemSettingSwitchPreference |
beanstown106 | f1ccf80 | 2016-01-17 14:32:33 -0500 | [diff] [blame] | 86 | android:key="torch_long_press_power_gesture" |
| 87 | android:title="@string/torch_long_press_power_gesture_title" |
| 88 | android:summary="@string/torch_long_press_power_gesture_desc" |
| 89 | android:defaultValue="false" |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 90 | lineage:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" /> |
beanstown106 | f1ccf80 | 2016-01-17 14:32:33 -0500 | [diff] [blame] | 91 | |
Sam Mortimer | eab1c5d | 2016-12-24 21:43:47 -0800 | [diff] [blame] | 92 | <ListPreference |
| 93 | android:key="torch_long_press_power_timeout" |
| 94 | android:dialogTitle="@string/torch_long_press_power_timeout_title" |
| 95 | android:title="@string/torch_long_press_power_timeout_title" |
| 96 | android:entries="@array/torch_long_press_power_timeout_entries" |
| 97 | android:entryValues="@array/torch_long_press_power_timeout_values" |
| 98 | android:dependency="torch_long_press_power_gesture" |
| 99 | android:persistent="false" /> |
| 100 | |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 101 | </PreferenceCategory> |
| 102 | |
| 103 | <PreferenceCategory |
| 104 | android:key="home_key" |
| 105 | android:title="@string/hardware_keys_home_key_title" > |
| 106 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 107 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 108 | android:key="home_wake_screen" |
| 109 | android:title="@string/button_wake_title" |
| 110 | android:defaultValue="true" /> |
| 111 | |
| 112 | <SwitchPreference |
| 113 | android:key="home_answer_call" |
| 114 | android:title="@string/home_answer_call_title" |
| 115 | android:summary="@string/home_answer_call_summary" |
| 116 | android:persistent="false"/> |
| 117 | |
| 118 | <ListPreference |
| 119 | android:key="hardware_keys_home_long_press" |
| 120 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 121 | android:title="@string/hardware_keys_long_press_title" |
| 122 | android:entries="@array/hardware_keys_action_entries" |
| 123 | android:entryValues="@array/hardware_keys_action_values" |
| 124 | android:persistent="false" /> |
| 125 | |
| 126 | <ListPreference |
| 127 | android:key="hardware_keys_home_double_tap" |
| 128 | android:dialogTitle="@string/hardware_keys_double_tap_title" |
| 129 | android:title="@string/hardware_keys_double_tap_title" |
| 130 | android:entries="@array/hardware_keys_action_entries" |
| 131 | android:entryValues="@array/hardware_keys_action_values" |
| 132 | android:persistent="false" /> |
| 133 | |
| 134 | </PreferenceCategory> |
| 135 | |
| 136 | <PreferenceCategory |
| 137 | android:key="back_key" |
| 138 | android:title="@string/hardware_keys_back_key_title" > |
| 139 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 140 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 141 | android:key="back_wake_screen" |
| 142 | android:title="@string/button_wake_title" |
| 143 | android:defaultValue="false" /> |
| 144 | |
| 145 | </PreferenceCategory> |
| 146 | |
| 147 | <PreferenceCategory |
| 148 | android:key="menu_key" |
| 149 | android:title="@string/hardware_keys_menu_key_title" > |
| 150 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 151 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 152 | android:key="menu_wake_screen" |
| 153 | android:title="@string/button_wake_title" |
| 154 | android:defaultValue="false" /> |
| 155 | |
| 156 | <ListPreference |
| 157 | android:key="hardware_keys_menu_press" |
| 158 | android:dialogTitle="@string/hardware_keys_short_press_title" |
| 159 | android:title="@string/hardware_keys_short_press_title" |
| 160 | android:entries="@array/hardware_keys_action_entries" |
| 161 | android:entryValues="@array/hardware_keys_action_values" |
| 162 | android:persistent="false" /> |
| 163 | |
| 164 | <ListPreference |
| 165 | android:key="hardware_keys_menu_long_press" |
| 166 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 167 | android:title="@string/hardware_keys_long_press_title" |
| 168 | android:entries="@array/hardware_keys_action_entries" |
| 169 | android:entryValues="@array/hardware_keys_action_values" |
| 170 | android:persistent="false" /> |
| 171 | |
| 172 | </PreferenceCategory> |
| 173 | |
| 174 | <PreferenceCategory |
| 175 | android:key="assist_key" |
| 176 | android:title="@string/hardware_keys_assist_key_title" > |
| 177 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 178 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 179 | android:key="assist_wake_screen" |
| 180 | android:title="@string/button_wake_title" |
| 181 | android:defaultValue="false" /> |
| 182 | |
| 183 | <ListPreference |
| 184 | android:key="hardware_keys_assist_press" |
| 185 | android:dialogTitle="@string/hardware_keys_short_press_title" |
| 186 | android:title="@string/hardware_keys_short_press_title" |
| 187 | android:entries="@array/hardware_keys_action_entries" |
| 188 | android:entryValues="@array/hardware_keys_action_values" |
| 189 | android:persistent="false" /> |
| 190 | |
| 191 | <ListPreference |
| 192 | android:key="hardware_keys_assist_long_press" |
| 193 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 194 | android:title="@string/hardware_keys_long_press_title" |
| 195 | android:entries="@array/hardware_keys_action_entries" |
| 196 | android:entryValues="@array/hardware_keys_action_values" |
| 197 | android:persistent="false" /> |
| 198 | |
| 199 | </PreferenceCategory> |
| 200 | |
| 201 | <PreferenceCategory |
| 202 | android:key="app_switch_key" |
| 203 | android:title="@string/hardware_keys_appswitch_key_title" > |
| 204 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 205 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 206 | android:key="app_switch_wake_screen" |
| 207 | android:title="@string/button_wake_title" |
| 208 | android:defaultValue="false" /> |
| 209 | |
| 210 | <ListPreference |
| 211 | android:key="hardware_keys_app_switch_press" |
| 212 | android:dialogTitle="@string/hardware_keys_short_press_title" |
| 213 | android:title="@string/hardware_keys_short_press_title" |
| 214 | android:entries="@array/hardware_keys_action_entries" |
| 215 | android:entryValues="@array/hardware_keys_action_values" |
| 216 | android:persistent="false" /> |
| 217 | |
| 218 | <ListPreference |
| 219 | android:key="hardware_keys_app_switch_long_press" |
| 220 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 221 | android:title="@string/hardware_keys_long_press_title" |
| 222 | android:entries="@array/hardware_keys_action_entries" |
| 223 | android:entryValues="@array/hardware_keys_action_values" |
| 224 | android:persistent="false" /> |
| 225 | |
| 226 | </PreferenceCategory> |
| 227 | |
| 228 | <PreferenceCategory |
| 229 | android:key="camera_key" |
| 230 | android:title="@string/hardware_keys_camera_key_title"> |
| 231 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 232 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 233 | android:key="camera_wake_screen" |
| 234 | android:title="@string/button_wake_title" |
| 235 | android:defaultValue="false" /> |
| 236 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 237 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 238 | android:key="camera_sleep_on_release" |
| 239 | android:title="@string/camera_sleep_on_release_title" |
| 240 | android:summary="@string/camera_sleep_on_release_summary" |
| 241 | android:defaultValue="false" /> |
| 242 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 243 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 244 | android:key="camera_launch" |
| 245 | android:title="@string/camera_launch_title" |
| 246 | android:summary="@string/camera_launch_summary" |
| 247 | android:defaultValue="false" /> |
| 248 | |
| 249 | </PreferenceCategory> |
| 250 | |
| 251 | <PreferenceCategory |
| 252 | android:key="volume_keys" |
| 253 | android:title="@string/hardware_keys_volume_keys_title" > |
| 254 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 255 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 256 | android:key="volume_wake_screen" |
| 257 | android:title="@string/button_wake_title" |
| 258 | android:defaultValue="false" /> |
| 259 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 260 | <lineageos.preference.LineageSystemSettingSwitchPreference |
martincz | b35adf0 | 2015-04-03 03:15:41 +0800 | [diff] [blame] | 261 | android:key="volume_answer_call" |
| 262 | android:title="@string/volume_answer_call_title" |
| 263 | android:summary="@string/volume_answer_call_summary" |
| 264 | android:defaultValue="false" /> |
| 265 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 266 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 267 | android:key="volbtn_music_controls" |
| 268 | android:title="@string/volbtn_music_controls_title" |
| 269 | android:summary="@string/volbtn_music_controls_summary" |
| 270 | android:defaultValue="true" /> |
| 271 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 272 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 273 | android:key="volume_keys_control_ring_stream" |
| 274 | android:title="@string/volume_keys_control_ring_stream_title" |
| 275 | android:summaryOn="@string/volume_keys_control_ring_stream_summary_on" |
| 276 | android:summaryOff="@string/volume_keys_control_ring_stream_summary_off" |
| 277 | android:defaultValue="true" /> |
| 278 | |
| 279 | <ListPreference |
| 280 | android:key="volume_key_cursor_control" |
| 281 | android:dialogTitle="@string/volbtn_cursor_control_title" |
| 282 | android:title="@string/volbtn_cursor_control_title" |
| 283 | android:entries="@array/volbtn_cursor_control_entries" |
| 284 | android:entryValues="@array/volbtn_cursor_control_values" |
| 285 | android:persistent="false" /> |
| 286 | |
| 287 | <SwitchPreference |
| 288 | android:key="swap_volume_buttons" |
| 289 | android:title="@string/swap_volume_buttons_title" |
| 290 | android:summary="@string/swap_volume_buttons_summary" /> |
| 291 | </PreferenceCategory> |
| 292 | |
Bruno Martins | 9df2a41 | 2017-10-25 11:43:13 +0100 | [diff] [blame] | 293 | <PreferenceCategory |
| 294 | android:key="extras_category" |
| 295 | android:title="@string/extras_title" > |
| 296 | |
| 297 | <lineageos.preference.RemotePreference |
| 298 | android:key="additional_buttons" |
| 299 | android:title="@string/additional_buttons_title" |
| 300 | lineage:requiresAction="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS"> |
| 301 | <intent |
| 302 | android:action="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS" /> |
| 303 | </lineageos.preference.RemotePreference> |
| 304 | |
| 305 | </PreferenceCategory> |
| 306 | |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 307 | </PreferenceScreen> |