This allows configuration of long press home gesture on 2-/3-button navigation configurations. It allows the user to enable and disable the invocation of assistant app using said gesture. Bug: 191888710 Test: Unit tests and on a physical device. Change-Id: I18cb290058ac5c2a748d40802b942404f548b868
40 lines
1.5 KiB
XML
40 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2021 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.
|
|
-->
|
|
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
|
android:key="button_navigation_settings_page"
|
|
android:title="@string/button_navigation_settings_activity_title"
|
|
settings:keywords="@string/keywords_button_navigation_settings">
|
|
|
|
<PreferenceCategory
|
|
android:key="assistant_button_navigation_category"
|
|
android:persistent="false"
|
|
android:title="@string/assistant_gesture_category_title">
|
|
|
|
<SwitchPreference
|
|
android:key="assistant_long_press_home_gesture"
|
|
android:title="@string/assistant_long_press_home_gesture_title"
|
|
android:summary="@string/assistant_long_press_home_gesture_summary"
|
|
settings:controller="com.android.settings.gestures.ButtonNavigationSettingsAssistController"
|
|
/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|
|
|