From fbcd2840ca125770e5518cebb2cce0f35d85be59 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Tue, 11 Sep 2018 23:04:18 +0200 Subject: [PATCH] No need to call method twice --- .../gadgetbridge/activities/charts/ActivityAnalysis.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityAnalysis.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityAnalysis.java index f9e3e654c..a3e199c75 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityAnalysis.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityAnalysis.java @@ -121,7 +121,7 @@ class ActivityAnalysis { for (ActivitySample sample : samples) { int steps = sample.getSteps(); if (steps > 0) { - totalSteps += sample.getSteps(); + totalSteps += steps; } } return totalSteps;