mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
Improve HR Y axis in sleep chart
This commit is contained in:
parent
61e2411081
commit
2ed6247658
@ -247,8 +247,8 @@ public class SleepChartFragment extends AbstractActivityChartFragment<SleepChart
|
||||
&& supportsHeartrate(getChartsHost().getDevice())
|
||||
&& SHOW_CHARTS_AVERAGE) {
|
||||
if (mcd.getHeartRateAxisMax() != 0 || mcd.getHeartRateAxisMin() != 0) {
|
||||
mActivityChart.getAxisRight().setAxisMaximum(mcd.getHeartRateAxisMax());
|
||||
mActivityChart.getAxisRight().setAxisMinimum(mcd.getHeartRateAxisMin());
|
||||
mActivityChart.getAxisRight().setAxisMaximum(mcd.getHeartRateAxisMax() + (mcd.getHeartRateAxisMin() / 2f));
|
||||
mActivityChart.getAxisRight().setAxisMinimum(mcd.getHeartRateAxisMin() / 2f);
|
||||
}
|
||||
LimitLine hrAverage_line = new LimitLine(mcd.getHeartRateAverage());
|
||||
hrAverage_line.setLineColor(Color.RED);
|
||||
|
Loading…
Reference in New Issue
Block a user