commit | cea2480cacef137347eb56646e42cfde550c498f | [log] [tgz] |
---|---|---|
author | Brian Isganitis <brianji@google.com> | Thu Mar 10 10:27:12 2022 -0800 |
committer | Brian Isganitis <brianji@google.com> | Thu Mar 10 18:29:34 2022 +0000 |
tree | d20edb06b992b0996cbf6a6ef10ca034e2ac05b7 | |
parent | 968c32563ff21239eccf14e05f66edd821fffe62 [diff] |
Properly center all apps divider. Fix: 223837782 Test: Manual on large and small screens in portrait and landscape. Change-Id: Ie4d609ce6524cc739d00bec5a8d26ec4c4152633
diff --git a/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java b/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java index d37e530..0284ae4 100644 --- a/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java +++ b/quickstep/src/com/android/launcher3/appprediction/AppsDividerView.java
@@ -194,7 +194,7 @@ @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,