From 94ea329b50ef367babdd83624af14d2103ca7069 Mon Sep 17 00:00:00 2001 From: Stypox Date: Wed, 12 Apr 2023 08:39:33 +0200 Subject: [PATCH] Always show comment replies in list mode --- .../list/comments/CommentRepliesFragment.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/comments/CommentRepliesFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/comments/CommentRepliesFragment.java index 8cd8222d2..4b85dfa68 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/comments/CommentRepliesFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/comments/CommentRepliesFragment.java @@ -2,6 +2,8 @@ package org.schabi.newpipe.fragments.list.comments; import android.os.Bundle; import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuInflater; import android.view.View; import android.view.ViewGroup; @@ -14,6 +16,7 @@ import org.schabi.newpipe.extractor.ListExtractor; import org.schabi.newpipe.extractor.comments.CommentsInfo; import org.schabi.newpipe.extractor.comments.CommentsInfoItem; import org.schabi.newpipe.fragments.list.BaseListInfoFragment; +import org.schabi.newpipe.info_list.ItemViewMode; import org.schabi.newpipe.util.ExtractorHelper; import java.util.Queue; @@ -86,4 +89,14 @@ public final class CommentRepliesFragment protected Single> loadMoreItemsLogic() { return ExtractorHelper.getMoreCommentItems(serviceId, commentsInfo, currentNextPage); } + + + /*////////////////////////////////////////////////////////////////////////// + // Utils + //////////////////////////////////////////////////////////////////////////*/ + + @Override + protected ItemViewMode getItemViewMode() { + return ItemViewMode.LIST; + } }