mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
No need to call method twice
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ class ActivityAnalysis {
|
||||
for (ActivitySample sample : samples) {
|
||||
int steps = sample.getSteps();
|
||||
if (steps > 0) {
|
||||
totalSteps += sample.getSteps();
|
||||
totalSteps += steps;
|
||||
}
|
||||
}
|
||||
return totalSteps;
|
||||
|
||||
Reference in New Issue
Block a user