From ecded08ddd30083ec36e2c11e8379463ee0974a7 Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Mon, 3 Apr 2023 20:10:12 -0400 Subject: [PATCH] Dispatch insets from overlay drag layer. This simplifies insets handling for All Apps and EDU, and also fixes some edge cases with All Apps popup menus. KeyboardQuickSwitchView now needs to ignore insets since it has a hardcoded top margin, keyboard_quick_switch_margin_top. Fix: 276804708 Test: All Apps, EDU, and Quick Switch all have proper insets handling. Change-Id: I93237a057b4f9ae62f71a70c59a58f3c8401c102 --- quickstep/res/layout/keyboard_quick_switch_view.xml | 3 ++- quickstep/res/layout/taskbar_edu_tooltip.xml | 1 - .../taskbar/allapps/TaskbarAllAppsContainerView.java | 7 ------- .../launcher3/taskbar/overlay/TaskbarOverlayDragLayer.java | 4 +++- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/quickstep/res/layout/keyboard_quick_switch_view.xml b/quickstep/res/layout/keyboard_quick_switch_view.xml index 5c20a2db3c..64d3f67eda 100644 --- a/quickstep/res/layout/keyboard_quick_switch_view.xml +++ b/quickstep/res/layout/keyboard_quick_switch_view.xml @@ -25,7 +25,8 @@ android:clipToOutline="true" android:alpha="0" android:visibility="invisible" - android:focusableInTouchMode="true"> + android:focusableInTouchMode="true" + app:layout_ignoreInsets="true">