Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[health] Fixed SleepSessionRecord stage error #928

Conversation

thegamenicorus
Copy link

Step to reproduce:

HealthFactory health = HealthFactory(
  useHealthConnectIfAvailable: true,
);

var sleepDataHC = await health.getHealthDataFromTypes(
      sleepStart,
      sleepEnd,
      [
        HealthDataType.SLEEP_SESSION,
      ],
    );

Result:

 java.lang.IllegalArgumentException: Unsupported value: 'androidx.health.connect.client.records.SleepSessionRecord$Stage@c063c16c' of type 'class androidx.health.connect.client.records.SleepSessionRecord$Stage'

@bardram bardram changed the base branch from master to bardram/health-update March 29, 2024 19:16
@bardram bardram self-assigned this Mar 29, 2024
@bardram bardram self-requested a review March 29, 2024 19:16
@bardram
Copy link
Contributor

bardram commented Mar 29, 2024

Has been added to the upcoming 10.0.0 release. Thx.

@bardram bardram closed this Mar 29, 2024
@bardram bardram mentioned this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants