From d9d222ca9b133cf0462fa3bce003820fb527f0e6 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Wed, 9 Sep 2015 21:15:29 +0200 Subject: [PATCH] Tiny logging improvement --- .../gadgetbridge/activities/charts/AbstractChartFragment.java | 2 +- .../gadgetbridge/activities/charts/WeekStepsChartFragment.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java index 7be2afcb..668708c4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java @@ -360,7 +360,7 @@ public abstract class AbstractChartFragment extends AbstractGBFragment { String dateStringFrom = ""; String dateStringTo = ""; - LOG.info("number of samples:" + samples.size()); + LOG.info("" + getTitle() + ": number of samples:" + samples.size()); if (samples.size() > 1) { float movement_divisor; boolean annotate = true; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/WeekStepsChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/WeekStepsChartFragment.java index 71382dfa..39068828 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/WeekStepsChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/WeekStepsChartFragment.java @@ -130,6 +130,7 @@ public class WeekStepsChartFragment extends AbstractChartFragment { GBDevice device = ((ChartsHost) getHost()).getDevice(); if (device != null) { + // TODO: eek, this is device specific! mTargetSteps = MiBandCoordinator.getFitnessGoal(device.getAddress()); }