Open dreamsbond opened 6 years ago
i am having problem doing readParcelable, for example:
public static final Parcelable.Creator<Room> CREATOR = new Creator<Room>() {
@Override
public Room createFromParcel(Parcel parcel) {
Room room = new Room();
room.setId(parcel.readString());
room.setRoomType(parcel.readParcelable(Room.class.getClassLoader()));
return room;
}
@Override
public Room[] newArray(int i) {
return new Room[i];
}
};
Change the setter did help, retrieving the relationship:
public void setRoomType(ResourceIdentifier roomType) {
this.roomType = new HasOne<>(roomType);
}
did help show room type relation (HasOne linkedResource) but fail to retrieve its attribute via getDocument() method.
please help.
Any update on this issue?
Will Parcelable be implemented?
Is there any sample illustrating the use of Parcelable for bundle parameter transfer? thanks