Properly set at glance cellHspan

This commit is contained in:
MrSluffy committed 2023-11-01 14:51:38 +08:00
1 parent 7a23ea7d17
commit acb3afa1f3
2 files changed
+2 -5

No files matched your search

+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(