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:
parent
249ff5bf94
commit
9360b81ef3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user