去掉Google搜索框
This commit is contained in:
@@ -503,18 +503,18 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
|||||||
// Add the first page
|
// Add the first page
|
||||||
CellLayout firstPage = insertNewWorkspaceScreen(Workspace.FIRST_SCREEN_ID, 0);
|
CellLayout firstPage = insertNewWorkspaceScreen(Workspace.FIRST_SCREEN_ID, 0);
|
||||||
// Always add a QSB on the first screen.
|
// Always add a QSB on the first screen.
|
||||||
if (qsb == null) {
|
// if (qsb == null) {
|
||||||
// In transposed layout, we add the QSB in the Grid. As workspace does not touch the
|
// // In transposed layout, we add the QSB in the Grid. As workspace does not touch the
|
||||||
// edges, we do not need a full width QSB.
|
// // edges, we do not need a full width QSB.
|
||||||
qsb = LayoutInflater.from(getContext())
|
// qsb = LayoutInflater.from(getContext())
|
||||||
.inflate(R.layout.search_container_workspace,firstPage, false);
|
// .inflate(R.layout.search_container_workspace,firstPage, false);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);
|
// CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);
|
||||||
lp.canReorder = false;
|
// lp.canReorder = false;
|
||||||
if (!firstPage.addViewToCellLayout(qsb, 0, R.id.search_container_workspace, lp, true)) {
|
// 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");
|
// Log.e(TAG, "Failed to add to item at (0, 0) to CellLayout");
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeAllWorkspaceScreens() {
|
public void removeAllWorkspaceScreens() {
|
||||||
|
|||||||
Reference in New Issue
Block a user