Skip to content
Snippets Groups Projects
Commit 01a0e6eb authored by Duncan McNamara's avatar Duncan McNamara
Browse files

MediaWrapper: fix insertDate parcel write position

Due to having the wrong position in the parcel creation for the media
wrapper, it caused an OOM exception. This was introduced in
6113d68f
parent 654dc362
No related branches found
No related tags found
1 merge request!1733MediaWrapper: fix insertDate parcel write position
Pipeline #343753 canceled with stage
in 9 minutes and 47 seconds
......@@ -782,7 +782,6 @@ public abstract class MediaWrapper extends MediaLibraryItem implements Parcelabl
dest.writeLong(getLastModified());
dest.writeLong(getSeen());
dest.writeInt(isPresent() ? 1 : 0);
dest.writeLong(mInsertionDate);
if (mSlaves != null) {
PSlave[] pslaves = new PSlave[mSlaves.length];
......@@ -793,6 +792,7 @@ public abstract class MediaWrapper extends MediaLibraryItem implements Parcelabl
} else
dest.writeTypedArray(null, flags);
dest.writeInt(mFavorite ? 1 : 0);
dest.writeLong(mInsertionDate);
}
public static final Parcelable.Creator<MediaWrapper> CREATOR = new Parcelable.Creator<MediaWrapper>() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment