From 064b201aa680432e5a3e5c5c3e6c65ed89ae8b9f Mon Sep 17 00:00:00 2001 From: Yunfan Chen Date: Mon, 21 Dec 2020 17:16:27 +0900 Subject: [PATCH] Add tappable elements insets types to WM Wrapper This is to let the apps, such as launcher to be able to provide tappable elements insets. This is necessary as the launcher may add task bar to the system and it should behave as a tappable elements insets source Test: go/wm-smoke Bug: 168766580 Change-Id: Id43fb2a1e82ef6e21a540e0af551b0fee430353f --- .../android/systemui/shared/system/WindowManagerWrapper.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowManagerWrapper.java b/packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowManagerWrapper.java index d3066b4d43d42..b38270cb86092 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowManagerWrapper.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/system/WindowManagerWrapper.java @@ -83,6 +83,11 @@ public class WindowManagerWrapper { public static final int WINDOWING_MODE_FREEFORM = WindowConfiguration.WINDOWING_MODE_FREEFORM; public static final int ITYPE_EXTRA_NAVIGATION_BAR = InsetsState.ITYPE_EXTRA_NAVIGATION_BAR; + public static final int ITYPE_LEFT_TAPPABLE_ELEMENT = InsetsState.ITYPE_LEFT_TAPPABLE_ELEMENT; + public static final int ITYPE_TOP_TAPPABLE_ELEMENT = InsetsState.ITYPE_TOP_TAPPABLE_ELEMENT; + public static final int ITYPE_RIGHT_TAPPABLE_ELEMENT = InsetsState.ITYPE_RIGHT_TAPPABLE_ELEMENT; + public static final int ITYPE_BOTTOM_TAPPABLE_ELEMENT = + InsetsState.ITYPE_BOTTOM_TAPPABLE_ELEMENT; private static final WindowManagerWrapper sInstance = new WindowManagerWrapper();