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:
parent
59ddedcf9a
commit
fbcd2840ca
@ -121,7 +121,7 @@ class ActivityAnalysis {
|
||||
for (ActivitySample sample : samples) {
|
||||
int steps = sample.getSteps();
|
||||
if (steps > 0) {
|
||||
totalSteps += sample.getSteps();
|
||||
totalSteps += steps;
|
||||
}
|
||||
}
|
||||
return totalSteps;
|
||||
|
Loading…
Reference in New Issue
Block a user