From d3bc18497157572e758f73bfdf5a69a447027fe4 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Mon, 21 Feb 2022 21:50:30 +0100 Subject: [PATCH] Clarify that only StramInfoItems are accepted by the builder --- .../schabi/newpipe/info_list/dialog/InfoItemDialog.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/info_list/dialog/InfoItemDialog.java b/app/src/main/java/org/schabi/newpipe/info_list/dialog/InfoItemDialog.java index c573831b4..2264ab370 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/dialog/InfoItemDialog.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/dialog/InfoItemDialog.java @@ -86,7 +86,7 @@ public final class InfoItemDialog { } /** - *

Builder to generate a {@link InfoItemDialog}.

+ *

Builder to generate a {@link InfoItemDialog} for a {@link StreamInfoItem}.

* Use {@link #addEntry(StreamDialogDefaultEntry)} * and {@link #addAllEntries(StreamDialogDefaultEntry...)} to add options to the dialog. *
@@ -102,7 +102,8 @@ public final class InfoItemDialog { private final boolean addDefaultEntriesAutomatically; /** - *

Create a Builder instance that automatically adds the some default entries + *

Create a {@link Builder builder} instance for a {@link StreamInfoItem} + * that automatically adds the some default entries * at the top and bottom of the dialog.

* The dialog has the following structure: *
@@ -142,7 +143,7 @@ public final class InfoItemDialog {
         }
 
         /**
-         * 

Create an instance of this Builder.

+ *

Create an instance of this {@link Builder} for a {@link StreamInfoItem}.

*

If {@code addDefaultEntriesAutomatically} is set to {@code true}, * some default entries are added to the top and bottom of the dialog.

* The dialog has the following structure: