mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Don't show back button when discovery bounce is playing
Bug: 74766552 Change-Id: Ib3b514f4a2bfaa8593b82cd5acb16f02dd09dcc7
This commit is contained in:
@@ -70,6 +70,9 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
|
||||
public static final int TYPE_REBIND_SAFE = TYPE_WIDGETS_FULL_SHEET
|
||||
| TYPE_QUICKSTEP_PREVIEW | TYPE_ON_BOARD_POPUP;
|
||||
|
||||
// Usually we show the back button when a floating view is open. Instead, hide for these types.
|
||||
public static final int TYPE_HIDE_BACK_BUTTON = TYPE_ON_BOARD_POPUP;
|
||||
|
||||
protected boolean mIsOpen;
|
||||
|
||||
public AbstractFloatingView(Context context, AttributeSet attrs) {
|
||||
@@ -170,6 +173,11 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
|
||||
}
|
||||
|
||||
public static AbstractFloatingView getTopOpenView(BaseDraggingActivity activity) {
|
||||
return getOpenView(activity, TYPE_ALL);
|
||||
return getTopOpenViewWithType(activity, TYPE_ALL);
|
||||
}
|
||||
|
||||
public static AbstractFloatingView getTopOpenViewWithType(BaseDraggingActivity activity,
|
||||
@FloatingViewType int type) {
|
||||
return getOpenView(activity, type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user