1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Set the sample provider in getLatestActivitySample()

This commit is contained in:
cpfeiffer 2016-11-24 20:12:56 +01:00
parent 6520b46238
commit cc0fbff297

View File

@ -89,7 +89,9 @@ public abstract class AbstractSampleProvider<T extends AbstractActivitySample> i
if (samples.isEmpty()) {
return null;
}
return samples.get(0);
T sample = samples.get(0);
sample.setProvider(this);
return sample;
}
protected List<T> getGBActivitySamples(int timestamp_from, int timestamp_to, int activityType) {