From 9d55bc29719a5cf373903cc9cda571c0eed908f2 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ricau Date: Fri, 20 Jul 2018 14:43:58 -0700 Subject: [PATCH] Fix drawing of start line --- .../squareup/leakcanary/internal/DisplayLeakConnectorView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakConnectorView.java b/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakConnectorView.java index 3bafb82b91..3a500da34f 100644 --- a/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakConnectorView.java +++ b/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakConnectorView.java @@ -144,8 +144,7 @@ public DisplayLeakConnectorView(Context context, AttributeSet attrs) { private void drawStartLine(Canvas cacheCanvas) { int width = getMeasuredWidth(); float halfWidth = width / 2f; - float halfHeight = getMeasuredHeight() / 2f; - cacheCanvas.drawLine(halfWidth, 0, halfWidth, halfHeight, classNamePaint); + cacheCanvas.drawLine(halfWidth, 0, halfWidth, circleY, classNamePaint); } private void drawRoot(Canvas cacheCanvas) {