mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 01:09:47 +01:00
Let the user change date also on the Week steps chart
This commit is contained in:
parent
face7cceea
commit
249ff5bf94
@ -47,6 +47,7 @@ public class WeekStepsChartFragment extends AbstractChartFragment {
|
|||||||
@Override
|
@Override
|
||||||
protected void refreshInBackground(DBHandler db, GBDevice device) {
|
protected void refreshInBackground(DBHandler db, GBDevice device) {
|
||||||
Calendar day = Calendar.getInstance();
|
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
|
//NB: we could have omitted the day, but this way we can move things to the past easily
|
||||||
refreshDaySteps(db, mTodayStepsChart, day, device);
|
refreshDaySteps(db, mTodayStepsChart, day, device);
|
||||||
refreshWeekBeforeSteps(db, mWeekStepsChart, day, device);
|
refreshWeekBeforeSteps(db, mWeekStepsChart, day, device);
|
||||||
|
Loading…
Reference in New Issue
Block a user