Skip to content

Commit

Permalink
Update ChartView.java
Browse files Browse the repository at this point in the history
using .isEmpty() rather than checking size
  • Loading branch information
DarCyStorm committed Feb 15, 2024
1 parent cd43c10 commit a02c5e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ private void drawPointer(Canvas canvas) {
break;
}
}
if (firstChartValueSeries != null && chartPoints.size() > 0) {
if (firstChartValueSeries != null && !chartPoints.isEmpty()) {
int dx = getX(maxX) - pointer.getIntrinsicWidth() / 2;
double value = firstChartValueSeries.extractDataFromChartPoint(last);
int dy = getY(firstChartValueSeries, value) - pointer.getIntrinsicHeight();
Expand Down

0 comments on commit a02c5e8

Please sign in to comment.