From c84e74851b6a8ecf4d306054b5abb7ca27c8f90d Mon Sep 17 00:00:00 2001 From: Paul Kraft Date: Mon, 18 Nov 2024 17:51:40 -0800 Subject: [PATCH] update --- .../spezi/core/design/component/AsyncImageResource.kt | 8 ++++---- .../stanford/spezi/core/design/component/ImageResource.kt | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/AsyncImageResource.kt b/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/AsyncImageResource.kt index 6d66342f..1707e4ed 100644 --- a/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/AsyncImageResource.kt +++ b/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/AsyncImageResource.kt @@ -8,28 +8,28 @@ import javax.annotation.concurrent.Immutable @Immutable sealed interface AsyncImageResource { - val identifier: UUID + val identifier: String val contentDescription: StringResource data class Remote( val url: String, override val contentDescription: StringResource, ) : AsyncImageResource { - override val identifier: UUID = UUID() + override val identifier = UUID().toString() } data class Vector( val image: ImageVector, override val contentDescription: StringResource, ) : AsyncImageResource { - override val identifier: UUID = UUID() + override val identifier = UUID().toString() } data class Drawable( @DrawableRes val resId: Int, override val contentDescription: StringResource, ) : AsyncImageResource { - override val identifier: UUID = UUID() + override val identifier = UUID().toString() } companion object { diff --git a/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/ImageResource.kt b/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/ImageResource.kt index a8cc7329..8099dca7 100644 --- a/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/ImageResource.kt +++ b/core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/ImageResource.kt @@ -15,20 +15,20 @@ import javax.annotation.concurrent.Immutable */ @Immutable sealed interface ImageResource { - val identifier: UUID + val identifier: String val contentDescription: StringResource data class Vector( val image: ImageVector, override val contentDescription: StringResource, ) : ImageResource { - override val identifier: UUID = UUID() + override val identifier = UUID().toString() } data class Drawable( @DrawableRes val resId: Int, override val contentDescription: StringResource, ) : ImageResource { - override val identifier: UUID = UUID() + override val identifier = UUID().toString() } }