searchfilters: FilterItem now 'implements' Serializable to fix Parcelable encountered IOException
The following Exception crashes NewPipe. Adding Serializable to FilterItem solves it: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = org.schabi.newpipe.extractor.linkhandler.ListLinkHandler) ... Caused by: java.io.NotSerializableException: org.schabi.newpipe.extractor.search.filter.FilterItem
This commit is contained in:
parent
70a2b63900
commit
67366ea7b1
|
@ -2,6 +2,8 @@
|
|||
|
||||
package org.schabi.newpipe.extractor.search.filter;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
/**
|
||||
|
@ -12,7 +14,7 @@ import javax.annotation.Nonnull;
|
|||
* consists of filter options like 'Relevance', 'Views', 'Rating' etc.
|
||||
* -> for each filter option a FilterItem has to be created.
|
||||
*/
|
||||
public class FilterItem {
|
||||
public class FilterItem implements Serializable {
|
||||
|
||||
/**
|
||||
* The name id of the filter group.
|
||||
|
|
Loading…
Reference in New Issue