From 9f0d426a9fa3236fc55c239d7724d21c333155e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sun, 15 Sep 2024 14:44:40 +0100 Subject: [PATCH] VO2Max: Display latest sample from period --- .../gadgetbridge/activities/charts/VO2MaxFragment.java | 2 +- .../gadgetbridge/devices/Vo2MaxSampleProvider.java | 2 +- .../devices/garmin/GarminVo2MaxSampleProvider.java | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java index eb9e06d85..42def7c30 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java @@ -289,7 +289,7 @@ public class VO2MaxFragment extends AbstractChartFragment extends TimeSampleProvider { @Nullable - T getLatestSample(Vo2MaxSample.Type type); + T getLatestSample(Vo2MaxSample.Type type, long until); } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminVo2MaxSampleProvider.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminVo2MaxSampleProvider.java index fe9d8fc5f..b84e03836 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminVo2MaxSampleProvider.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminVo2MaxSampleProvider.java @@ -96,7 +96,7 @@ public class GarminVo2MaxSampleProvider implements Vo2MaxSampleProvider