DP-3T / dp3t-sdk-android

The DP3T-SDK for Android
Mozilla Public License 2.0
241 stars 94 forks source link

Exposure days list always return one element. #193

Open albertovecina opened 4 years ago

albertovecina commented 4 years ago

If I'm not mistaken, the exposure days list is always returning a one element list with the last exposure day:

https://github.com/DP-3T/dp3t-sdk-android/blob/739bf165b0d47c8ccdea6f3dbbd2252cb521aef4/dp3t-sdk/sdk/src/main/java/org/dpppt/android/sdk/internal/storage/ExposureDayStorage.java#L91

Am I wrong? Is this a bug? How can I get the full exposure days list?

Thanks

pantic79 commented 4 years ago

I think it would be useful to return all the exposures and that this kind of filtering is performed by the apps using the SDK.

simonroesch commented 4 years ago

You are correct, it makes more sense to do such a filtering on the app side. This will be changed with version 1.1 of the SDK: https://github.com/DP-3T/dp3t-sdk-android/pull/208