Skip to content

Commit

Permalink
添加分号,忘记加分号了
Browse files Browse the repository at this point in the history
  • Loading branch information
Wwh committed Jul 9, 2018
1 parent 4a16c7b commit a53dc2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,7 @@ public void draw(Canvas canvas) {
canvas.drawRect(mIndicatorLeft, getHeight() - mSelectedIndicatorHeight,
mIndicatorRight, getHeight(), mSelectedIndicatorPaint);
} else {//如果设置了宽度 则计算左侧开始绘制的偏移量
int left = (mIndicatorRight - mIndicatorLeft) / 2 - (mSelectedIndicatorWidth / 2) + mIndicatorLeft
int left = (mIndicatorRight - mIndicatorLeft) / 2 - (mSelectedIndicatorWidth / 2) + mIndicatorLeft;
canvas.drawRect(left, getHeight() - mSelectedIndicatorHeight,
left + mSelectedIndicatorWidth, getHeight(), mSelectedIndicatorPaint);
}
Expand Down

0 comments on commit a53dc2a

Please sign in to comment.