-
Notifications
You must be signed in to change notification settings - Fork 154
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
Adds support for Exercise Goals #290
Conversation
...pleCompose/app/src/main/java/com/example/exercisesamplecompose/data/ExerciseClientManager.kt
Outdated
Show resolved
Hide resolved
...pleCompose/app/src/main/java/com/example/exercisesamplecompose/data/ExerciseClientManager.kt
Show resolved
Hide resolved
icon = { Icon(Icons.Default.SportsScore, contentDescription = "goal achieved") }, | ||
title = stringResource(id = R.string.goal_achieved), | ||
showDialog = showDialog, | ||
durationMillis = 10L, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10ms seems pretty short, does this show for long enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I'll update it to 50, and maybe look into some sort of vibration in a later iteration. Definitely want to modify the ExerciseGoalMet component more because 1) it isn't centered and 2) it could look nicer 😅
.../app/src/main/java/com/example/exercisesamplecompose/presentation/exercise/ExerciseScreen.kt
Outdated
Show resolved
Hide resolved
...pp/src/main/java/com/example/exercisesamplecompose/presentation/goals/ExerciseGoalsScreen.kt
Outdated
Show resolved
Hide resolved
...pp/src/main/java/com/example/exercisesamplecompose/presentation/goals/ExerciseGoalsScreen.kt
Outdated
Show resolved
Hide resolved
...pp/src/main/java/com/example/exercisesamplecompose/presentation/goals/ExerciseGoalsScreen.kt
Outdated
Show resolved
Hide resolved
...src/main/java/com/example/exercisesamplecompose/presentation/goals/ExerciseGoalsViewModel.kt
Outdated
Show resolved
Hide resolved
.../app/src/main/java/com/example/exercisesamplecompose/presentation/exercise/ExerciseScreen.kt
Outdated
Show resolved
Hide resolved
...pp/src/main/java/com/example/exercisesamplecompose/presentation/goals/ExerciseGoalsScreen.kt
Outdated
Show resolved
Hide resolved
...pp/src/main/java/com/example/exercisesamplecompose/presentation/goals/ExerciseGoalsScreen.kt
Outdated
Show resolved
Hide resolved
health-services/ExerciseSampleCompose/gradle/libs.versions.toml
Outdated
Show resolved
Hide resolved
...seSampleCompose/app/src/main/java/com/example/exercisesamplecompose/service/ExerciseState.kt
Outdated
Show resolved
Hide resolved
...SampleCompose/app/src/main/java/com/example/exercisesamplecompose/service/ExerciseService.kt
Show resolved
Hide resolved
465016c
to
e05cf07
Compare
You will see the force-push as a had a goof up on my fork, but will do checks to make sure all is in order. |
@@ -120,7 +120,7 @@ dependencies { | |||
// Hilt | |||
implementation libs.hilt.navigation.compose | |||
implementation libs.dagger.hilt.android | |||
kapt libs.dagger.hilt.android.compiler | |||
kapt libs.dagger.hilt.android.compiler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: revert?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks!
icon = { Icon(Icons.Default.SportsScore, contentDescription = "goal achieved") }, | ||
title = stringResource(id = R.string.goal_achieved), | ||
showDialog = showDialog, | ||
durationMillis = 50L, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave this as the default, 50ms is very short.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to DialogDefaults.LongDurationMillis
e05cf07
to
a077b30
Compare
Adds support for Exercise Goals: