matt tighe07/25/2019, 11:32 PM
writing a type converter doesn’t seem to do it
sealed class Animal object Dog : Animal() object Cat : Animal() @Entity data class Person( val name: String val favoriteTypeOfAnimal: Animal )
Mark Murphy07/25/2019, 11:39 PM
matt tighe07/25/2019, 11:41 PM
Type is not directly supported by 'Parcelize'. Annotate the parameter type with '@RawValue' if you want it to be serialized using 'writeValue()'
sealed class Animal : Parcelable @Parcelize object Dog : Animal() @Parcelize object Cat : Animal() @Entity data class Person( val name: String val favoriteTypeOfAnimal: Animal )
Mark Murphy07/25/2019, 11:43 PM
is not meant to be a persistable type
types, some people are going to shoot themselves in the foot (though your scenario may be fine)
jw07/26/2019, 12:08 AM
matt tighe07/26/2019, 12:24 AM
as well. i believe that was so they could be passed in `Bundle`s. is that a bad practice?
jw07/26/2019, 12:27 AM