Move parcelable annotation onto implementation classes (#709)

This commit is contained in:
David Perez 2024-01-22 10:18:28 -06:00 committed by Álison Fernandes
parent 75fbadb67b
commit 8baf88be47

View file

@ -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,