mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Converting PopupContainerWithArrow into a base class so that it is easier
to create other types of popup Bug: 67585158 Change-Id: I966ae7bb90f941951b26feaf71b3ea30c3f3c0cc
This commit is contained in:
@@ -38,14 +38,14 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
|
||||
|
||||
@IntDef(flag = true, value = {
|
||||
TYPE_FOLDER,
|
||||
TYPE_POPUP_CONTAINER_WITH_ARROW,
|
||||
TYPE_ACTION_POPUP,
|
||||
TYPE_WIDGETS_BOTTOM_SHEET,
|
||||
TYPE_WIDGET_RESIZE_FRAME
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface FloatingViewType {}
|
||||
public static final int TYPE_FOLDER = 1 << 0;
|
||||
public static final int TYPE_POPUP_CONTAINER_WITH_ARROW = 1 << 1;
|
||||
public static final int TYPE_ACTION_POPUP = 1 << 1;
|
||||
public static final int TYPE_WIDGETS_BOTTOM_SHEET = 1 << 2;
|
||||
public static final int TYPE_WIDGET_RESIZE_FRAME = 1 << 3;
|
||||
|
||||
@@ -138,7 +138,7 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
|
||||
}
|
||||
|
||||
public static AbstractFloatingView getTopOpenView(Launcher launcher) {
|
||||
return getOpenView(launcher, TYPE_FOLDER | TYPE_POPUP_CONTAINER_WITH_ARROW
|
||||
return getOpenView(launcher, TYPE_FOLDER | TYPE_ACTION_POPUP
|
||||
| TYPE_WIDGETS_BOTTOM_SHEET | TYPE_WIDGET_RESIZE_FRAME);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user