From d05ad989682b658b84bfb8989df7f36c0966a191 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 25 Aug 2020 19:42:47 -0700 Subject: [PATCH] Prevent secondary home handle from handling touches This change doesn't affect the hit test for determining if a touch is for an app vs the nav bar region, it just allows touches to go through the secondary home handle if someone wants to interact with underlying app mid quickswitch. Fixes: 162755095 Change-Id: I915f25a0c7d4c68179c6c8862edbe2b486d671dc --- .../src/com/android/systemui/navigationbar/NavigationBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java index aec3543de4eb8..c7e78174f4746 100644 --- a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +++ b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java @@ -662,7 +662,7 @@ public class NavigationBar implements View.OnAttachStateChangeListener, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN - | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH + | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_SLIPPERY, PixelFormat.TRANSLUCENT); mOrientationParams.setTitle("SecondaryHomeHandle" + mContext.getDisplayId());