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

No need to call method twice

This commit is contained in:
cpfeiffer 2018-09-11 23:04:18 +02:00
parent 59ddedcf9a
commit fbcd2840ca

View File

@ -121,7 +121,7 @@ class ActivityAnalysis {
for (ActivitySample sample : samples) {
int steps = sample.getSteps();
if (steps > 0) {
totalSteps += sample.getSteps();
totalSteps += steps;
}
}
return totalSteps;