From 780f0f1f8b835dbbf9fff478bc13003a7b51e345 Mon Sep 17 00:00:00 2001 From: Prema Chand Alugu Date: Tue, 6 Nov 2018 12:59:50 +0530 Subject: [PATCH] sanders: overlay: gzr: Enable Keys overlay to fine-tune navbar/FP-gestures GZOSP - We do have 'Button' settings and can be configured for LongPress/DoubleTap actions. Sanders doesn't have hardware keys and navbar keys do the default actions. However we have FP gestures in MotoActions. But default actions of HOME/BACK/RECENTS cannot be performed anymore with FP gestures as they are primary job of navbar keys. Unless we want to gain screen-estate, there is no need for FP gestures to do default actions along with nav-bar. This overlay mimics the Sanders has Hardware key (just HOME a.k.a FP) and nav-bar can now be disabled. With that we could configure default actions of HOME/BACK/RECENTS with FP gestures. --- .../base/core/res/res/values/config.xml | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 3bb4d97..b5536a2 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -380,19 +380,18 @@ 100 true--> - - + 1 - Home + 2 - Back + 4 - Menu + 8 - Assistant (search) + 16 - App switch + 32 - Camera + For example, a device with Back, Home and AppSwitch keys would set this + config to 19. --> + 1