Merge "Properly center all apps divider." into tm-dev am: 7a8b8fb2c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17156867 Change-Id: Iae944c58add19864ac352425c534287e4d19ca23
This commit is contained in:
@@ -194,7 +194,7 @@ public class AppsDividerView extends View implements FloatingHeaderRow {
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
if (mDividerType == DividerType.LINE) {
|
||||
int l = (getWidth() - getPaddingLeft() - mDividerSize[0]) / 2;
|
||||
int l = (getWidth() - mDividerSize[0]) / 2;
|
||||
int t = getHeight() - (getPaddingBottom() / 2);
|
||||
int radius = mDividerSize[1];
|
||||
canvas.drawRoundRect(l, t, l + mDividerSize[0], t + mDividerSize[1], radius, radius,
|
||||
|
||||
Reference in New Issue
Block a user