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_left" |
| 42 | android:title="@string/navigation_bar_left_title" |
| 43 | android:summary="@string/navigation_bar_left_summary" |
| 44 | android:defaultValue="false" /> |
| 45 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 46 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 47 | android:key="navigation_bar_menu_arrow_keys" |
| 48 | android:title="@string/navigation_bar_arrow_keys_title" |
| 49 | android:summary="@string/navigation_bar_arrow_keys_summary" |
| 50 | android:defaultValue="false" /> |
| 51 | |
| 52 | <PreferenceScreen |
| 53 | android:key="navigation_bar" |
| 54 | android:title="@string/navigation_bar_title"> |
| 55 | <intent android:action="com.android.settings.action.NAV_BAR_TUNER" /> |
| 56 | </PreferenceScreen> |
| 57 | |
| 58 | <ListPreference |
Sam Mortimer | c1be604 | 2016-10-29 12:25:19 -0700 | [diff] [blame] | 59 | android:key="navigation_home_long_press" |
| 60 | android:dialogTitle="@string/navigation_bar_home_long_press_title" |
| 61 | android:title="@string/navigation_bar_home_long_press_title" |
| 62 | android:entries="@array/hardware_keys_action_entries" |
| 63 | android:entryValues="@array/hardware_keys_action_values" |
| 64 | android:persistent="false" /> |
| 65 | |
| 66 | <ListPreference |
| 67 | android:key="navigation_home_double_tap" |
| 68 | android:dialogTitle="@string/navigation_bar_home_double_tap_title" |
| 69 | android:title="@string/navigation_bar_home_double_tap_title" |
| 70 | android:entries="@array/hardware_keys_action_entries" |
| 71 | android:entryValues="@array/hardware_keys_action_values" |
| 72 | android:persistent="false" /> |
| 73 | |
| 74 | <ListPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 75 | android:key="navigation_recents_long_press" |
| 76 | android:dialogTitle="@string/navigation_bar_recents_title" |
| 77 | android:title="@string/navigation_bar_recents_title" |
| 78 | android:persistent="false" /> |
| 79 | |
| 80 | </PreferenceCategory> |
| 81 | |
| 82 | <PreferenceCategory |
| 83 | android:key="power_key" |
| 84 | android:title="@string/hardware_keys_power_key_title" > |
| 85 | |
| 86 | <PreferenceScreen |
| 87 | android:key="power_menu" |
| 88 | android:title="@string/power_menu_title" |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 89 | android:fragment="org.lineageos.lineageparts.input.PowerMenuActions" /> |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 90 | |
| 91 | <SwitchPreference |
| 92 | android:key="power_end_call" |
| 93 | android:title="@string/power_end_call_title" |
| 94 | android:summary="@string/power_end_call_summary" |
| 95 | android:persistent="false"/> |
| 96 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 97 | <lineageos.preference.LineageSystemSettingSwitchPreference |
beanstown106 | f1ccf80 | 2016-01-17 14:32:33 -0500 | [diff] [blame] | 98 | android:key="torch_long_press_power_gesture" |
| 99 | android:title="@string/torch_long_press_power_gesture_title" |
| 100 | android:summary="@string/torch_long_press_power_gesture_desc" |
| 101 | android:defaultValue="false" |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 102 | lineage:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" /> |
beanstown106 | f1ccf80 | 2016-01-17 14:32:33 -0500 | [diff] [blame] | 103 | |
Sam Mortimer | eab1c5d | 2016-12-24 21:43:47 -0800 | [diff] [blame] | 104 | <ListPreference |
| 105 | android:key="torch_long_press_power_timeout" |
| 106 | android:dialogTitle="@string/torch_long_press_power_timeout_title" |
| 107 | android:title="@string/torch_long_press_power_timeout_title" |
| 108 | android:entries="@array/torch_long_press_power_timeout_entries" |
| 109 | android:entryValues="@array/torch_long_press_power_timeout_values" |
| 110 | android:dependency="torch_long_press_power_gesture" |
| 111 | android:persistent="false" /> |
| 112 | |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 113 | </PreferenceCategory> |
| 114 | |
| 115 | <PreferenceCategory |
| 116 | android:key="home_key" |
| 117 | android:title="@string/hardware_keys_home_key_title" > |
| 118 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 119 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 120 | android:key="home_wake_screen" |
| 121 | android:title="@string/button_wake_title" |
| 122 | android:defaultValue="true" /> |
| 123 | |
| 124 | <SwitchPreference |
| 125 | android:key="home_answer_call" |
| 126 | android:title="@string/home_answer_call_title" |
| 127 | android:summary="@string/home_answer_call_summary" |
| 128 | android:persistent="false"/> |
| 129 | |
| 130 | <ListPreference |
| 131 | android:key="hardware_keys_home_long_press" |
| 132 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 133 | android:title="@string/hardware_keys_long_press_title" |
| 134 | android:entries="@array/hardware_keys_action_entries" |
| 135 | android:entryValues="@array/hardware_keys_action_values" |
| 136 | android:persistent="false" /> |
| 137 | |
| 138 | <ListPreference |
| 139 | android:key="hardware_keys_home_double_tap" |
| 140 | android:dialogTitle="@string/hardware_keys_double_tap_title" |
| 141 | android:title="@string/hardware_keys_double_tap_title" |
| 142 | android:entries="@array/hardware_keys_action_entries" |
| 143 | android:entryValues="@array/hardware_keys_action_values" |
| 144 | android:persistent="false" /> |
| 145 | |
| 146 | </PreferenceCategory> |
| 147 | |
| 148 | <PreferenceCategory |
| 149 | android:key="back_key" |
| 150 | android:title="@string/hardware_keys_back_key_title" > |
| 151 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 152 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 153 | android:key="back_wake_screen" |
| 154 | android:title="@string/button_wake_title" |
| 155 | android:defaultValue="false" /> |
| 156 | |
| 157 | </PreferenceCategory> |
| 158 | |
| 159 | <PreferenceCategory |
| 160 | android:key="menu_key" |
| 161 | android:title="@string/hardware_keys_menu_key_title" > |
| 162 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 163 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 164 | android:key="menu_wake_screen" |
| 165 | android:title="@string/button_wake_title" |
| 166 | android:defaultValue="false" /> |
| 167 | |
| 168 | <ListPreference |
| 169 | android:key="hardware_keys_menu_press" |
| 170 | android:dialogTitle="@string/hardware_keys_short_press_title" |
| 171 | android:title="@string/hardware_keys_short_press_title" |
| 172 | android:entries="@array/hardware_keys_action_entries" |
| 173 | android:entryValues="@array/hardware_keys_action_values" |
| 174 | android:persistent="false" /> |
| 175 | |
| 176 | <ListPreference |
| 177 | android:key="hardware_keys_menu_long_press" |
| 178 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 179 | android:title="@string/hardware_keys_long_press_title" |
| 180 | android:entries="@array/hardware_keys_action_entries" |
| 181 | android:entryValues="@array/hardware_keys_action_values" |
| 182 | android:persistent="false" /> |
| 183 | |
| 184 | </PreferenceCategory> |
| 185 | |
| 186 | <PreferenceCategory |
| 187 | android:key="assist_key" |
| 188 | android:title="@string/hardware_keys_assist_key_title" > |
| 189 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 190 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 191 | android:key="assist_wake_screen" |
| 192 | android:title="@string/button_wake_title" |
| 193 | android:defaultValue="false" /> |
| 194 | |
| 195 | <ListPreference |
| 196 | android:key="hardware_keys_assist_press" |
| 197 | android:dialogTitle="@string/hardware_keys_short_press_title" |
| 198 | android:title="@string/hardware_keys_short_press_title" |
| 199 | android:entries="@array/hardware_keys_action_entries" |
| 200 | android:entryValues="@array/hardware_keys_action_values" |
| 201 | android:persistent="false" /> |
| 202 | |
| 203 | <ListPreference |
| 204 | android:key="hardware_keys_assist_long_press" |
| 205 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 206 | android:title="@string/hardware_keys_long_press_title" |
| 207 | android:entries="@array/hardware_keys_action_entries" |
| 208 | android:entryValues="@array/hardware_keys_action_values" |
| 209 | android:persistent="false" /> |
| 210 | |
| 211 | </PreferenceCategory> |
| 212 | |
| 213 | <PreferenceCategory |
| 214 | android:key="app_switch_key" |
| 215 | android:title="@string/hardware_keys_appswitch_key_title" > |
| 216 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 217 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 218 | android:key="app_switch_wake_screen" |
| 219 | android:title="@string/button_wake_title" |
| 220 | android:defaultValue="false" /> |
| 221 | |
| 222 | <ListPreference |
| 223 | android:key="hardware_keys_app_switch_press" |
| 224 | android:dialogTitle="@string/hardware_keys_short_press_title" |
| 225 | android:title="@string/hardware_keys_short_press_title" |
| 226 | android:entries="@array/hardware_keys_action_entries" |
| 227 | android:entryValues="@array/hardware_keys_action_values" |
| 228 | android:persistent="false" /> |
| 229 | |
| 230 | <ListPreference |
| 231 | android:key="hardware_keys_app_switch_long_press" |
| 232 | android:dialogTitle="@string/hardware_keys_long_press_title" |
| 233 | android:title="@string/hardware_keys_long_press_title" |
| 234 | android:entries="@array/hardware_keys_action_entries" |
| 235 | android:entryValues="@array/hardware_keys_action_values" |
| 236 | android:persistent="false" /> |
| 237 | |
| 238 | </PreferenceCategory> |
| 239 | |
| 240 | <PreferenceCategory |
| 241 | android:key="camera_key" |
| 242 | android:title="@string/hardware_keys_camera_key_title"> |
| 243 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 244 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 245 | android:key="camera_wake_screen" |
| 246 | android:title="@string/button_wake_title" |
| 247 | android:defaultValue="false" /> |
| 248 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 249 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 250 | android:key="camera_sleep_on_release" |
| 251 | android:title="@string/camera_sleep_on_release_title" |
| 252 | android:summary="@string/camera_sleep_on_release_summary" |
| 253 | android:defaultValue="false" /> |
| 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="camera_launch" |
| 257 | android:title="@string/camera_launch_title" |
| 258 | android:summary="@string/camera_launch_summary" |
| 259 | android:defaultValue="false" /> |
| 260 | |
| 261 | </PreferenceCategory> |
| 262 | |
| 263 | <PreferenceCategory |
| 264 | android:key="volume_keys" |
| 265 | android:title="@string/hardware_keys_volume_keys_title" > |
| 266 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 267 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 268 | android:key="volume_wake_screen" |
| 269 | android:title="@string/button_wake_title" |
| 270 | android:defaultValue="false" /> |
| 271 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 272 | <lineageos.preference.LineageSystemSettingSwitchPreference |
martincz | b35adf0 | 2015-04-03 03:15:41 +0800 | [diff] [blame] | 273 | android:key="volume_answer_call" |
| 274 | android:title="@string/volume_answer_call_title" |
| 275 | android:summary="@string/volume_answer_call_summary" |
| 276 | android:defaultValue="false" /> |
| 277 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 278 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 279 | android:key="volbtn_music_controls" |
| 280 | android:title="@string/volbtn_music_controls_title" |
| 281 | android:summary="@string/volbtn_music_controls_summary" |
| 282 | android:defaultValue="true" /> |
| 283 | |
Sam Mortimer | 32a2abb | 2017-09-18 21:40:24 -0700 | [diff] [blame] | 284 | <lineageos.preference.LineageSystemSettingSwitchPreference |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 285 | android:key="volume_keys_control_ring_stream" |
| 286 | android:title="@string/volume_keys_control_ring_stream_title" |
| 287 | android:summaryOn="@string/volume_keys_control_ring_stream_summary_on" |
| 288 | android:summaryOff="@string/volume_keys_control_ring_stream_summary_off" |
| 289 | android:defaultValue="true" /> |
| 290 | |
| 291 | <ListPreference |
| 292 | android:key="volume_key_cursor_control" |
| 293 | android:dialogTitle="@string/volbtn_cursor_control_title" |
| 294 | android:title="@string/volbtn_cursor_control_title" |
| 295 | android:entries="@array/volbtn_cursor_control_entries" |
| 296 | android:entryValues="@array/volbtn_cursor_control_values" |
| 297 | android:persistent="false" /> |
| 298 | |
| 299 | <SwitchPreference |
| 300 | android:key="swap_volume_buttons" |
| 301 | android:title="@string/swap_volume_buttons_title" |
| 302 | android:summary="@string/swap_volume_buttons_summary" /> |
| 303 | </PreferenceCategory> |
| 304 | |
Bruno Martins | 9df2a41 | 2017-10-25 11:43:13 +0100 | [diff] [blame^] | 305 | <PreferenceCategory |
| 306 | android:key="extras_category" |
| 307 | android:title="@string/extras_title" > |
| 308 | |
| 309 | <lineageos.preference.RemotePreference |
| 310 | android:key="additional_buttons" |
| 311 | android:title="@string/additional_buttons_title" |
| 312 | lineage:requiresAction="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS"> |
| 313 | <intent |
| 314 | android:action="org.lineageos.settings.device.ADDITIONAL_BUTTONS_SETTINGS" /> |
| 315 | </lineageos.preference.RemotePreference> |
| 316 | |
| 317 | </PreferenceCategory> |
| 318 | |
Steve Kondik | 3281bd6 | 2016-09-09 23:55:11 -0700 | [diff] [blame] | 319 | </PreferenceScreen> |