diff --git a/health-services/ExerciseSampleCompose/app/src/main/java/com/example/exercisesamplecompose/service/ExerciseService.kt b/health-services/ExerciseSampleCompose/app/src/main/java/com/example/exercisesamplecompose/service/ExerciseService.kt index c2036851..5e34a67b 100644 --- a/health-services/ExerciseSampleCompose/app/src/main/java/com/example/exercisesamplecompose/service/ExerciseService.kt +++ b/health-services/ExerciseSampleCompose/app/src/main/java/com/example/exercisesamplecompose/service/ExerciseService.kt @@ -55,7 +55,7 @@ class ExerciseService : LifecycleService() { private val localBinder = LocalBinder() private val serviceRunningInForeground: Boolean - get() = this.foregroundServiceType != ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE + get() = this.foregroundServiceType != 0 private suspend fun isExerciseInProgress() = exerciseClientManager.exerciseClient.isExerciseInProgress() diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/drawable/ic_launcher_background.xml b/health-services/ExerciseSampleCompose/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/health-services/ExerciseSampleCompose/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/drawable/ic_launcher_foreground.xml b/health-services/ExerciseSampleCompose/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 00000000..da1dcd94 --- /dev/null +++ b/health-services/ExerciseSampleCompose/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..bbd3e021 --- /dev/null +++ b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..bbd3e021 --- /dev/null +++ b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher.webp index c209e78e..7f907b61 100644 Binary files a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher.webp and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 00000000..1f14ac03 Binary files /dev/null and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher.webp index 4f0f1d64..4792018b 100644 Binary files a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher.webp and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 00000000..e59c7c0d Binary files /dev/null and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp index 948a3070..1a6546e6 100644 Binary files a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..6180aadc Binary files /dev/null and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp index 28d4b77f..1ec18077 100644 Binary files a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..935c9a90 Binary files /dev/null and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp index aa7d6427..8d4bf8ec 100644 Binary files a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..ea1f7693 Binary files /dev/null and b/health-services/ExerciseSampleCompose/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/health-services/ExerciseSampleCompose/app/src/main/res/values/strings.xml b/health-services/ExerciseSampleCompose/app/src/main/res/values/strings.xml index 34ad1b0c..73737d34 100644 --- a/health-services/ExerciseSampleCompose/app/src/main/res/values/strings.xml +++ b/health-services/ExerciseSampleCompose/app/src/main/res/values/strings.xml @@ -67,6 +67,6 @@ Goal achieved! - positive - negative + Yes + No diff --git a/health-services/ExerciseSampleCompose/screenshots/ongoing_notification.png b/health-services/ExerciseSampleCompose/screenshots/ongoing_notification.png index 99f7d360..5dd2aeea 100644 Binary files a/health-services/ExerciseSampleCompose/screenshots/ongoing_notification.png and b/health-services/ExerciseSampleCompose/screenshots/ongoing_notification.png differ