Properly center all apps divider.

Fix: 223837782
Test: Manual on large and small screens in portrait and landscape.
Change-Id: Ie4d609ce6524cc739d00bec5a8d26ec4c4152633
This commit is contained in:
Brian Isganitis
2022-03-10 18:29:34 +00:00
parent 968c32563f
commit cea2480cac
@@ -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,