Replicate Pixel Launcher
- Add workspace from Pixel Launcher
This commit is contained in:
@@ -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