Skip to content

Commit

Permalink
Merge pull request #1057 from square/py/ui_bug
Browse files Browse the repository at this point in the history
Fix drawing of start line
  • Loading branch information
pyricau authored Jul 20, 2018
2 parents c425b82 + 9d55bc2 commit af96577
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit af96577

Please sign in to comment.