diff options
Diffstat (limited to 'org.fox.ttrss/src/main/java/org/fox/ttrss/types/FeedCategoryList.java')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/types/FeedCategoryList.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/types/FeedCategoryList.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/types/FeedCategoryList.java new file mode 100644 index 00000000..eb5331bc --- /dev/null +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/types/FeedCategoryList.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 FeedCategoryList extends ArrayList<FeedCategory> implements Parcelable { + + public FeedCategoryList() { } + + @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 FeedCategoryList(Parcel in) { + readFromParcel(in); + } + + @SuppressWarnings("rawtypes") + public static final Parcelable.Creator CREATOR = + new Parcelable.Creator() { + public FeedCategoryList createFromParcel(Parcel in) { + return new FeedCategoryList(in); + } + + public FeedCategoryList[] newArray(int size) { + return new FeedCategoryList[size]; + } + }; + } |