From 8baf88be478cfeb46dd1453f784a4aa516e7cac6 Mon Sep 17 00:00:00 2001 From: David Perez Date: Mon, 22 Jan 2024 10:18:28 -0600 Subject: [PATCH] Move parcelable annotation onto implementation classes (#709) --- .../x8bit/bitwarden/ui/platform/components/model/IconData.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/model/IconData.kt b/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/model/IconData.kt index ba51a76fa8..8613492f2a 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/model/IconData.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/model/IconData.kt @@ -6,7 +6,6 @@ import kotlinx.parcelize.Parcelize /** * A class to denote the type of icon being passed. */ -@Parcelize sealed class IconData : Parcelable { /** @@ -14,6 +13,7 @@ sealed class IconData : Parcelable { * * @property iconRes the resource for the local icon. */ + @Parcelize data class Local( val iconRes: Int, ) : IconData() @@ -24,6 +24,7 @@ sealed class IconData : Parcelable { * @property uri the link for the icon. * @property fallbackIconRes fallback resource if the image cannot be loaded. */ + @Parcelize data class Network( val uri: String, val fallbackIconRes: Int,