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:
evermind 2024-01-01 15:41:17 +01:00
parent 70a2b63900
commit 67366ea7b1
1 changed files with 3 additions and 1 deletions

View File

@ -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.