From 603b3298ffa73714e2af955ce916b044f234d8b6 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Fri, 30 Mar 2018 17:15:39 -0700 Subject: Avoids vibration over deadzone in navigationbar Removed the deadzone as a view and converted to a class that is attached to NavigationBarView to determine if the incoming touch events should be consumed by the deadzone. Change-Id: I5bf6a9e48ba9fa2305ec98acfc537d14cb8cf725 Fixes: 77235132 Test: tap just above the home button in portrait --- .../res/layout-sw600dp/navigation_layout_rot90.xml | 12 ---- packages/SystemUI/res/layout/navigation_layout.xml | 12 ---- .../res/layout/navigation_layout_rot90.xml | 12 ---- packages/SystemUI/res/values-land/config.xml | 3 + packages/SystemUI/res/values-sw600dp/config.xml | 3 + packages/SystemUI/res/values/config.xml | 3 + .../statusbar/phone/NavigationBarView.java | 16 +++-- .../statusbar/phone/QuickStepController.java | 2 +- .../systemui/statusbar/policy/DeadZone.java | 78 ++++++++++------------ 9 files changed, 57 insertions(+), 84 deletions(-) diff --git a/packages/SystemUI/res/layout-sw600dp/navigation_layout_rot90.xml b/packages/SystemUI/res/layout-sw600dp/navigation_layout_rot90.xml index 6f153c1086a1..78304fd894dd 100644 --- a/packages/SystemUI/res/layout-sw600dp/navigation_layout_rot90.xml +++ b/packages/SystemUI/res/layout-sw600dp/navigation_layout_rot90.xml @@ -41,16 +41,4 @@ - - diff --git a/packages/SystemUI/res/layout/navigation_layout.xml b/packages/SystemUI/res/layout/navigation_layout.xml index 3e6079451c74..953abc7148a8 100644 --- a/packages/SystemUI/res/layout/navigation_layout.xml +++ b/packages/SystemUI/res/layout/navigation_layout.xml @@ -46,16 +46,4 @@ - - diff --git a/packages/SystemUI/res/layout/navigation_layout_rot90.xml b/packages/SystemUI/res/layout/navigation_layout_rot90.xml index 39cdff47c5ac..0e17e5b57cae 100644 --- a/packages/SystemUI/res/layout/navigation_layout_rot90.xml +++ b/packages/SystemUI/res/layout/navigation_layout_rot90.xml @@ -46,16 +46,4 @@ - - diff --git a/packages/SystemUI/res/values-land/config.xml b/packages/SystemUI/res/values-land/config.xml index f7e23449fa0a..63bbe62a6520 100644 --- a/packages/SystemUI/res/values-land/config.xml +++ b/packages/SystemUI/res/values-land/config.xml @@ -28,4 +28,7 @@ 1 + + + 1 diff --git a/packages/SystemUI/res/values-sw600dp/config.xml b/packages/SystemUI/res/values-sw600dp/config.xml index 67dabdb7353d..f91af03f5889 100644 --- a/packages/SystemUI/res/values-sw600dp/config.xml +++ b/packages/SystemUI/res/values-sw600dp/config.xml @@ -35,4 +35,7 @@ 290 + + 0 + diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml index 711d550e89c6..f49d3de4a6a4 100644 --- a/packages/SystemUI/res/values/config.xml +++ b/packages/SystemUI/res/values/config.xml @@ -93,6 +93,9 @@ 333 333 + + 0 + false