Properly set at glance cellHspan

This commit is contained in:
MrSluffy
2023-10-29 23:20:51 +08:00
parent 7a23ea7d17
commit acb3afa1f3
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -666,7 +666,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
.inflate(smartspaceMode.getLayoutResourceId(), firstPage, false);
}
int cellHSpan = mLauncher.getDeviceProfile().inv.numSearchContainerColumns;
int cellHSpan = mLauncher.getDeviceProfile().inv.numColumns;
CellLayoutLayoutParams lp = new CellLayoutLayoutParams(0, 0, cellHSpan, 1);
lp.canReorder = false;
if (!firstPage.addViewToCellLayout(