mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Add a feature flag to expand smartspace to three rows" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
f9317597ef
@@ -139,6 +139,10 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
|
||||
public static final int DEFAULT_PAGE = 0;
|
||||
|
||||
private static final int DEFAULT_SMARTSPACE_HEIGHT = 1;
|
||||
|
||||
private static final int EXPANDED_SMARTSPACE_HEIGHT = 2;
|
||||
|
||||
private LayoutTransition mLayoutTransition;
|
||||
@Thunk final WallpaperManager mWallpaperManager;
|
||||
|
||||
@@ -507,7 +511,10 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
.inflate(R.layout.search_container_workspace, firstPage, false);
|
||||
}
|
||||
|
||||
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);
|
||||
int cellVSpan = FeatureFlags.EXPANDED_SMARTSPACE.get()
|
||||
? EXPANDED_SMARTSPACE_HEIGHT : DEFAULT_SMARTSPACE_HEIGHT;
|
||||
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(),
|
||||
cellVSpan);
|
||||
lp.canReorder = false;
|
||||
if (!firstPage.addViewToCellLayout(qsb, 0, R.id.search_container_workspace, lp, true)) {
|
||||
Log.e(TAG, "Failed to add to item at (0, 0) to CellLayout");
|
||||
|
||||
Reference in New Issue
Block a user