Replicate Pixel Launcher

- Add workspace from Pixel Launcher
This commit is contained in:
MrSluffy
2023-12-17 10:31:01 +08:00
parent 8c1fb3cc8a
commit 53a107f61c
57 changed files with 2395 additions and 261 deletions
+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);
}