Set the sample provider in getLatestActivitySample()

here
cpfeiffer 2016-11-24 20:12:56 +01:00
parent 6520b46238
commit cc0fbff297
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ public abstract class AbstractSampleProvider<T extends AbstractActivitySample> i
if (samples.isEmpty()) { if (samples.isEmpty()) {
return null; 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) { protected List<T> getGBActivitySamples(int timestamp_from, int timestamp_to, int activityType) {