Skip to content
This repository was archived by the owner on Nov 10, 2024. It is now read-only.

Commit a579d4a

Browse files
committed
Cleanup
1 parent c42e75e commit a579d4a

File tree

1 file changed

+5
-5
lines changed
  • showcaseviewlib/src/main/java/smartdevelop/ir/eram/showcaseviewlib

1 file changed

+5
-5
lines changed

showcaseviewlib/src/main/java/smartdevelop/ir/eram/showcaseviewlib/GuideView.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ protected void onDraw(Canvas canvas) {
125125
marginGuide = (int) (isTop ? 15 * density : -15 * density);
126126

127127
float startYLineAndCircle = (isTop ? rect.bottom : rect.top) + marginGuide;
128-
float xLine = (rect.left / 2 + rect.right / 2);
129-
float cx = (target.getLeft() / 2 + target.getRight() / 2);
128+
129+
float x = (rect.left / 2 + rect.right / 2);
130130
float stopY = (y + INDICATOR_HEIGHT * density);
131131

132-
tempCanvas.drawLine(xLine, startYLineAndCircle, xLine,
132+
tempCanvas.drawLine(x, startYLineAndCircle, x,
133133
stopY
134134
, paintLine);
135135

136-
tempCanvas.drawCircle(cx, startYLineAndCircle, circleSize, paintCircle);
137-
tempCanvas.drawCircle(cx, startYLineAndCircle, circleInnerSize, paintCircleInner);
136+
tempCanvas.drawCircle(x, startYLineAndCircle, circleSize, paintCircle);
137+
tempCanvas.drawCircle(x, startYLineAndCircle, circleInnerSize, paintCircleInner);
138138

139139

140140
targetPaint.setXfermode(XFERMODE_CLEAR);

0 commit comments

Comments
 (0)