Skip to content

Commit b3a6318

Browse files
authored
Merge pull request #10959 from Stypox/fix-comment-replies-state
Fix not saving comment replies state on config change
2 parents 0ba73b1 + 67b41b9 commit b3a6318

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)