mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-25 16:50:44 +02: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);
|
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);
|
LimitLine target = new LimitLine(mTargetSteps);
|
||||||
|
barChart.getAxisLeft().getLimitLines().clear();
|
||||||
barChart.getAxisLeft().addLimitLine(target);
|
barChart.getAxisLeft().addLimitLine(target);
|
||||||
|
|
||||||
setupLegend(barChart);
|
setupLegend(barChart);
|
||||||
|
Loading…
Reference in New Issue
Block a user