From cea2480cacef137347eb56646e42cfde550c498f Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Thu, 10 Mar 2022 10:27:12 -0800 Subject: [PATCH] Properly center all apps divider. Fix: 223837782 Test: Manual on large and small screens in portrait and landscape. Change-Id: Ie4d609ce6524cc739d00bec5a8d26ec4c4152633 --- .../com/android/launcher3/appprediction/AppsDividerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java b/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java index d37e530c61..0284ae4803 100644 --- a/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java +++ b/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java @@ -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,