diff options
Diffstat (limited to 'orgfoxttrss/src/main/java/org/fox/ttrss/types/FeedList.java')
-rw-r--r-- | orgfoxttrss/src/main/java/org/fox/ttrss/types/FeedList.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/orgfoxttrss/src/main/java/org/fox/ttrss/types/FeedList.java b/orgfoxttrss/src/main/java/org/fox/ttrss/types/FeedList.java new file mode 100644 index 00000000..350f45ad --- /dev/null +++ b/orgfoxttrss/src/main/java/org/fox/ttrss/types/FeedList.java @@ -0,0 +1,43 @@ +package org.fox.ttrss.types; + +import java.util.ArrayList; + + +import android.os.Parcel; +import android.os.Parcelable; + +@SuppressWarnings("serial") +public class FeedList extends ArrayList<Feed> implements Parcelable { + + public FeedList() { } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel out, int flags) { + out.writeList(this); + } + + public void readFromParcel(Parcel in) { + in.readList(this, getClass().getClassLoader()); + } + + public FeedList(Parcel in) { + readFromParcel(in); + } + + @SuppressWarnings("rawtypes") + public static final Parcelable.Creator CREATOR = + new Parcelable.Creator() { + public FeedList createFromParcel(Parcel in) { + return new FeedList(in); + } + + public FeedList[] newArray(int size) { + return new FeedList[size]; + } + }; + } |