Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,13 @@ internal class OrchestratorViewModel @Inject constructor(
val nextStep = steps.firstOrNull { it.status == StepStatus.NOT_STARTED }
if (nextStep != null) {
nextStep.status = StepStatus.IN_PROGRESS
cache.steps = steps
_currentStep.send(nextStep)
} else {
// Acquiring location info could take long time, so we should stop location tracker
// before returning to the caller app to avoid creating empty sessions.
locationStore.cancelLocationCollection()
cache.steps = steps
buildAppResponse()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import java.io.Serializable
JsonSubTypes.Type(value = AlertResult::class, name = "AlertResult"),
JsonSubTypes.Type(value = ExitFormResult::class, name = "ExitFormResult"),
JsonSubTypes.Type(value = ValidateSubjectPoolResult::class, name = "ValidateSubjectPoolResult"),
JsonSubTypes.Type(value = SelectSubjectAgeGroupResult::class, name = "SelectSubjectAgeResult"),
JsonSubTypes.Type(value = SelectSubjectAgeGroupResult::class, name = "SelectSubjectAgeGroupResult"),
)
abstract class SerializableMixin : Serializable

Expand Down