java.lang.RuntimeException
Closed this issue · 1 comments
ialmetwally commented
In case of low memory there is a RuntimeException because of the incomplete parcelable SavedState
exception java.lang.RuntimeException
message Parcel android.os.Parcel@42c741b0: Unmarshalling unknown type code 3014765 at offset 240
the solution is to simply add these lines to the SavedState Class
public static class SavedState extends BaseSavedState {
.....
@SuppressWarnings("hiding")
public static final Parcelable.Creator<SavedState> CREATOR
= new Parcelable.Creator<SavedState>() {
public SavedState createFromParcel(Parcel in) {
return new SavedState(in);
}
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
private SavedState(Parcel in) {
super(in);
mSelItem = in.readInt();
}
}
blazsolar commented
Thanks for reporting issue and providing solution. This will be included in next release.