mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Merge "Sanitizing various search container ids and layout names" into ub-launcher3-dorval-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
efbfcb838d
@@ -600,12 +600,12 @@ public class Workspace extends PagedView
|
||||
// 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.qsb_container,firstPage, false);
|
||||
.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.qsb_container, 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");
|
||||
}
|
||||
}
|
||||
@@ -623,7 +623,7 @@ public class Workspace extends PagedView
|
||||
}
|
||||
|
||||
// Recycle the QSB widget
|
||||
View qsb = findViewById(R.id.qsb_container);
|
||||
View qsb = findViewById(R.id.search_container_workspace);
|
||||
if (qsb != null) {
|
||||
((ViewGroup) qsb.getParent()).removeView(qsb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user