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:
parent
fbcd2840ca
commit
aee0e54d05
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user