Skip to content

Commit

Permalink
Merge pull request tjerkw#51 from kquan/master
Browse files Browse the repository at this point in the history
Fix RuntimeException when unmarshalling data
  • Loading branch information
tjerkw committed Nov 20, 2013
2 parents e2cf4bd + 70d0e8e commit a99e817
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,15 @@ static class SavedState extends View.BaseSavedState {

private SavedState(Parcel in) {
super(in);
in.writeInt(lastOpenPosition);
writeBitSet(in, openItems);
lastOpenPosition = in.readInt();
openItems = readBitSet(in);
}

@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
lastOpenPosition = out.readInt();
openItems = readBitSet(out);
out.writeInt(lastOpenPosition);
writeBitSet(out, openItems);
}

//required field that makes Parcelables from a Parcel
Expand Down

0 comments on commit a99e817

Please sign in to comment.