fixup QsbLayout width

To match new hotseat dimens
This commit is contained in:
John Galt 2023-03-16 15:57:58 -04:00 committed by Jake Weinstein
parent 1a1c49f4c0
commit 69e7bb8a13
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class QsbLayout extends FrameLayout implements
DeviceProfile dp = ActivityContext.lookupContext(mContext).getDeviceProfile();
int cellWidth = DeviceProfile.calculateCellWidth(requestedWidth, dp.cellLayoutBorderSpacePx.x, dp.numShownHotseatIcons);
int iconSize = (int)(Math.round((dp.iconSizePx * 0.92f)));
int width = requestedWidth;
int width = requestedWidth + (cellWidth - iconSize);
setMeasuredDimension(width, height);
for (int i = 0; i < getChildCount(); i++) {