Skip to content

Commit

Permalink
Merge pull request #228 from amankhoza/main
Browse files Browse the repository at this point in the history
ExerciseSamples: Enable auto pause and resume
  • Loading branch information
yschimke authored Feb 23, 2024
2 parents 0834420 + 59922b9 commit d065b0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ class HealthServicesManager @Inject constructor(
)
}

val supportsAutoPauseAndResume = capabilities.supportsAutoPauseAndResume

val config = ExerciseConfig(
exerciseType = ExerciseType.RUNNING,
dataTypes = dataTypes,
isAutoPauseAndResumeEnabled = false,
isAutoPauseAndResumeEnabled = supportsAutoPauseAndResume,
isGpsEnabled = true,
exerciseGoals = exerciseGoals
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ class ExerciseClientManager @Inject constructor(
)
}

val supportsAutoPauseAndResume = capabilities.supportsAutoPauseAndResume

val config = ExerciseConfig(
exerciseType = ExerciseType.RUNNING,
dataTypes = dataTypes,
isAutoPauseAndResumeEnabled = false,
isAutoPauseAndResumeEnabled = supportsAutoPauseAndResume,
isGpsEnabled = true,
exerciseGoals = exerciseGoals
)
Expand Down

0 comments on commit d065b0c

Please sign in to comment.