forked from upstream-mirrors/OpenTracks
Cleanup: use .isEmpty() (except for CharSequence and StringBuilder as it requires SDK33).
This commit is contained in:
@@ -880,7 +880,7 @@ public class ChartView extends View {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user