去掉Google搜索框
This commit is contained in:
@@ -503,18 +503,18 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
// Add the first page
|
||||
CellLayout firstPage = insertNewWorkspaceScreen(Workspace.FIRST_SCREEN_ID, 0);
|
||||
// Always add a QSB on the first screen.
|
||||
if (qsb == null) {
|
||||
// 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.
|
||||
qsb = LayoutInflater.from(getContext())
|
||||
.inflate(R.layout.search_container_workspace,firstPage, false);
|
||||
}
|
||||
|
||||
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);
|
||||
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");
|
||||
}
|
||||
// if (qsb == null) {
|
||||
// // 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.
|
||||
// qsb = LayoutInflater.from(getContext())
|
||||
// .inflate(R.layout.search_container_workspace,firstPage, false);
|
||||
// }
|
||||
//
|
||||
// CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);
|
||||
// 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");
|
||||
// }
|
||||
}
|
||||
|
||||
public void removeAllWorkspaceScreens() {
|
||||
|
||||
Reference in New Issue
Block a user