Fixed hotseat spacing
This commit is contained in:
1 parent
de130cc611
commit
e28d20dde3
3 files changed
+16
-34
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user