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) {