Fixed hotseat spacing

This commit is contained in:
MrSluffy committed 2023-12-17 18:03:59 +08:00
1 parent de130cc611
commit e28d20dde3
3 files changed
+16 -34

No files matched your search

+1 -5
View File
@@ -412,11 +412,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
} else {
lp.leftMargin = lp.rightMargin = 0;
lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
boolean isDisabledHotseat = Utilities.ATLEAST_Q &&
getHotseat() != null &&
getHotseat().getQsb().getSourceLayoutResId() == R.layout.empty_view;
lp.bottomMargin = (padding.bottom) + grid.hotseatBarBottomSpacePx
- (isDisabledHotseat ? grid.workspaceCellPaddingXPx * 3 : 0);
lp.bottomMargin = grid.hotseatBarSizePx;
}
mPageIndicator.setLayoutParams(lp);
}