Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 064b201a authored by Yunfan Chen's avatar Yunfan Chen
Browse files

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
parent 69f35b55
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();