|
|
@@ -127,7 +127,7 @@ public class MainBannerViewItemDotIndicator extends RecyclerView.ItemDecoration
|
|
|
|
|
|
float start = indicatorStartX;
|
|
|
for (int i = 0; i < itemCount; i++) {
|
|
|
- if (i == highlightPosition) {
|
|
|
+ if (itemCount != 1 && i == highlightPosition) {
|
|
|
canvas.drawCircle(start, indicatorPosY, mIndicatorItemLength / 2F, mPaint);
|
|
|
}
|
|
|
start += itemWidth;
|