1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 01:09:47 +01:00

Don't add new limitlines, clean the existing one before (it could be optimized further by reusing the existing one, probably)

This commit is contained in:
Daniele Gobbetti 2015-08-31 17:25:23 +02:00
parent 249ff5bf94
commit 9360b81ef3

View File

@ -80,7 +80,7 @@ public class WeekStepsChartFragment extends AbstractChartFragment {
data.setValueTextColor(Color.GRAY); //prevent tearing other graph elements with the black text. Another approach would be to hide the values cmpletely with data.setDrawValues(false);
LimitLine target = new LimitLine(mTargetSteps);
barChart.getAxisLeft().getLimitLines().clear();
barChart.getAxisLeft().addLimitLine(target);
setupLegend(barChart);