From 249ff5bf94b85ef657699ef95b4bd4da8a1cbb82 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Mon, 31 Aug 2015 17:08:47 +0200 Subject: [PATCH] Let the user change date also on the Week steps chart --- .../gadgetbridge/activities/charts/WeekStepsChartFragment.java | 1 + 1 file changed, 1 insertion(+) 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 fcc70f834..aa05532b6 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 @@ -47,6 +47,7 @@ public class WeekStepsChartFragment extends AbstractChartFragment { @Override protected void refreshInBackground(DBHandler db, GBDevice device) { Calendar day = Calendar.getInstance(); + day.setTime(((ChartsHost) getHost()).getStartDate()); //NB: we could have omitted the day, but this way we can move things to the past easily refreshDaySteps(db, mTodayStepsChart, day, device); refreshWeekBeforeSteps(db, mWeekStepsChart, day, device);