The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2472
Description
WorkManager returns null status for ENQUEUED, RUNNING, and CANCELLED states. Now, if syncJobStatus is null, CurrentSyncJobStatus is created based on the WorkInfo state. If the WorkInfo state is SUCCEEDED or FAILED, then the sync job status is fetched from the FHIR data store.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: Bug fix
Screenshots (if applicable)
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2472
Description WorkManager returns null status for ENQUEUED, RUNNING, and CANCELLED states. Now, if syncJobStatus is null, CurrentSyncJobStatus is created based on the WorkInfo state. If the WorkInfo state is SUCCEEDED or FAILED, then the sync job status is fetched from the FHIR data store.
Alternative(s) considered Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type Choose one: Bug fix Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.