Let the user change date also on the Week steps chart

This commit is contained in:
Daniele Gobbetti 2015-08-31 17:08:47 +02:00
parent face7cceea
commit 249ff5bf94
1 changed files with 1 additions and 0 deletions

View File

@ -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);