Skip to content

Commit 67b41b9

Browse files
committed
Fix not saving comment replies state on config change
1 parent 0ba73b1 commit 67b41b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/fragments/list/comments/CommentRepliesFragment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.util.Queue;
3131
import java.util.function.Supplier;
3232

33+
import icepick.State;
3334
import io.reactivex.rxjava3.core.Single;
3435
import io.reactivex.rxjava3.disposables.CompositeDisposable;
3536

@@ -38,7 +39,8 @@ public final class CommentRepliesFragment
3839

3940
public static final String TAG = CommentRepliesFragment.class.getSimpleName();
4041

41-
private CommentsInfoItem commentsInfoItem; // the comment to show replies of
42+
@State
43+
CommentsInfoItem commentsInfoItem; // the comment to show replies of
4244
private final CompositeDisposable disposables = new CompositeDisposable();
4345

4446

0 commit comments

Comments
 (0)