mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Removing the SearchDropTarget bar as it no longer contains the QSB
> Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
This commit is contained in:
@@ -55,10 +55,10 @@ public abstract class ButtonDropTarget extends TextView
|
||||
private static final int DRAG_VIEW_DROP_DURATION = 285;
|
||||
|
||||
private final boolean mHideParentOnDisable;
|
||||
protected final Launcher mLauncher;
|
||||
|
||||
protected Launcher mLauncher;
|
||||
private int mBottomDragPadding;
|
||||
protected BaseDropTargetBar mDropTargetBar;
|
||||
protected DropTargetBar mDropTargetBar;
|
||||
|
||||
/** Whether this drop target is active for the current drag */
|
||||
protected boolean mActive;
|
||||
@@ -80,6 +80,8 @@ public abstract class ButtonDropTarget extends TextView
|
||||
|
||||
public ButtonDropTarget(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
mLauncher = (Launcher) context;
|
||||
|
||||
Resources resources = getResources();
|
||||
mBottomDragPadding = resources.getDimensionPixelSize(R.dimen.drop_target_drag_padding);
|
||||
|
||||
@@ -109,11 +111,7 @@ public abstract class ButtonDropTarget extends TextView
|
||||
}
|
||||
}
|
||||
|
||||
public void setLauncher(Launcher launcher) {
|
||||
mLauncher = launcher;
|
||||
}
|
||||
|
||||
public void setDropTargetBar(BaseDropTargetBar dropTargetBar) {
|
||||
public void setDropTargetBar(DropTargetBar dropTargetBar) {
|
||||
mDropTargetBar = dropTargetBar;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user