From 5d350aec873c123a133aef6ce24abdb3dae6e8c4 Mon Sep 17 00:00:00 2001 From: Stypox Date: Tue, 11 Apr 2023 15:25:17 +0200 Subject: [PATCH] Move RelatedItemInfo next to fragment using it --- .../{util => fragments/list/videos}/RelatedItemInfo.java | 9 +++++---- .../fragments/list/videos/RelatedItemsFragment.java | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) rename app/src/main/java/org/schabi/newpipe/{util => fragments/list/videos}/RelatedItemInfo.java (76%) diff --git a/app/src/main/java/org/schabi/newpipe/util/RelatedItemInfo.java b/app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemInfo.java similarity index 76% rename from app/src/main/java/org/schabi/newpipe/util/RelatedItemInfo.java rename to app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemInfo.java index f96bb0d54..9d2985082 100644 --- a/app/src/main/java/org/schabi/newpipe/util/RelatedItemInfo.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemInfo.java @@ -1,4 +1,4 @@ -package org.schabi.newpipe.util; +package org.schabi.newpipe.fragments.list.videos; import org.schabi.newpipe.extractor.InfoItem; import org.schabi.newpipe.extractor.ListInfo; @@ -9,9 +9,10 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -public class RelatedItemInfo extends ListInfo { - public RelatedItemInfo(final int serviceId, final ListLinkHandler listUrlIdHandler, - final String name) { +public final class RelatedItemInfo extends ListInfo { + private RelatedItemInfo(final int serviceId, + final ListLinkHandler listUrlIdHandler, + final String name) { super(serviceId, listUrlIdHandler, name); } diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemsFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemsFragment.java index 65664e0e3..5ec316420 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemsFragment.java @@ -21,7 +21,6 @@ import org.schabi.newpipe.extractor.stream.StreamInfo; import org.schabi.newpipe.fragments.list.BaseListInfoFragment; import org.schabi.newpipe.info_list.ItemViewMode; import org.schabi.newpipe.ktx.ViewUtils; -import org.schabi.newpipe.util.RelatedItemInfo; import java.io.Serializable; import java.util.function.Supplier;