1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 03:25:49 +01:00

Handle possible negative steps values

This commit is contained in:
cpfeiffer 2018-09-11 23:08:29 +02:00
parent fbcd2840ca
commit aee0e54d05

View File

@ -172,7 +172,7 @@ public class LiveActivityFragment extends AbstractChartFragment {
setCurrentHeartRate(heartRate, timestamp);
}
int steps = sample.getSteps();
if (steps != ActivitySample.NOT_MEASURED) {
if (steps > 0) {
addEntries(steps, timestamp);
}
}