Skip to content

Commit

Permalink
Launcher3: Allow widgets to have 1 row as minimum size
Browse files Browse the repository at this point in the history
Signed-off-by: Saul Henriquez <[email protected]>
  • Loading branch information
saulhdev authored and nullxception committed May 8, 2023
1 parent 5158b42 commit 28e9226
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void initSpans(Context context, InvariantDeviceProfile idp) {
minSpanX = Math.max(minSpanX,
getSpanX(localPadding, minResizeWidth, dp.cellLayoutBorderSpacePx.x,
cellSize.x));
minSpanY = Math.max(minSpanY,
minSpanY = Math.min(minSpanY,
getSpanY(localPadding, minResizeHeight, dp.cellLayoutBorderSpacePx.y,
cellSize.y));

Expand Down

0 comments on commit 28e9226

Please sign in to comment.