From 089aed8bb8bd74978f303624cb1673890d49c065 Mon Sep 17 00:00:00 2001 From: Jernej Virag Date: Tue, 11 May 2021 14:52:27 +0000 Subject: [PATCH] Add a setting to enable or disable corner invocation of assistant app This setting allows the user to disable the bottom corner swipe gesture when they have system navigation set to corner gestures. Bug: 179673792 Test: Verified on a physical device Ran robolectric unit tests for gesture settings package Change-Id: Ib4e818e884c36ddfafaf4e8c75d81e01a13a5831 --- res/values/strings.xml | 7 + res/xml/gesture_navigation_settings.xml | 14 ++ ...ureNavigationSettingsAssistController.java | 55 ++++++++ ...avigationSettingsAssistControllerTest.java | 120 ++++++++++++++++++ 4 files changed, 196 insertions(+) create mode 100644 src/com/android/settings/gestures/GestureNavigationSettingsAssistController.java create mode 100644 tests/robotests/src/com/android/settings/gestures/GestureNavigationSettingsAssistControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 0b4b7057fd5..efbd9c1c47c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -11612,6 +11612,13 @@ Switch default home app + + Digital assistant + + Swipe to invoke assistant + + Swipe up from a bottom corner corner to invoke digital assistant app. + Information diff --git a/res/xml/gesture_navigation_settings.xml b/res/xml/gesture_navigation_settings.xml index 0515d78649f..09bb870e49e 100644 --- a/res/xml/gesture_navigation_settings.xml +++ b/res/xml/gesture_navigation_settings.xml @@ -23,6 +23,20 @@ android:title="@string/gesture_settings_activity_title" settings:keywords="@string/keywords_gesture_navigation_settings"> + + + + + +