From bacd39318a1d3b321270f6d259570e53b367bab8 Mon Sep 17 00:00:00 2001 From: Ido Ben-Hur Date: Sat, 31 Aug 2024 04:31:59 +0300 Subject: [PATCH] Settings: Add a toggle for long press on navbar to search [3/3] Signed-off-by: Pranav Vashi --- res/values/evolution_strings.xml | 4 ++ res/xml/gesture_navigation_settings.xml | 6 ++ .../GestureNavigationLongPressController.java | 68 +++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 src/com/android/settings/gestures/GestureNavigationLongPressController.java diff --git a/res/values/evolution_strings.xml b/res/values/evolution_strings.xml index 51e76b4525b..aa3e16dcbb4 100644 --- a/res/values/evolution_strings.xml +++ b/res/values/evolution_strings.xml @@ -302,4 +302,8 @@ Disable fingerprint lockout Deactivates 30 second timeout as well as permanent lockout after multiple failed fingerprint unlock attempts + + + Long press to search + Touch and hold the Home button or the navigation handle to search using the content on your screen diff --git a/res/xml/gesture_navigation_settings.xml b/res/xml/gesture_navigation_settings.xml index ae815c275fa..d38796ff07d 100644 --- a/res/xml/gesture_navigation_settings.xml +++ b/res/xml/gesture_navigation_settings.xml @@ -67,6 +67,12 @@ settings:controller="com.android.settings.gestures.GestureNavigationSettingsAssistController" /> + +