Skip to content

Commit d3bc184

Browse files
committed
Clarify that only StramInfoItems are accepted by the builder
1 parent ee477b2 commit d3bc184

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/info_list/dialog/InfoItemDialog.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void show() {
8686
}
8787

8888
/**
89-
* <p>Builder to generate a {@link InfoItemDialog}.</p>
89+
* <p>Builder to generate a {@link InfoItemDialog} for a {@link StreamInfoItem}.</p>
9090
* Use {@link #addEntry(StreamDialogDefaultEntry)}
9191
* and {@link #addAllEntries(StreamDialogDefaultEntry...)} to add options to the dialog.
9292
* <br>
@@ -102,7 +102,8 @@ public static class Builder {
102102
private final boolean addDefaultEntriesAutomatically;
103103

104104
/**
105-
* <p>Create a Builder instance that automatically adds the some default entries
105+
* <p>Create a {@link Builder builder} instance for a {@link StreamInfoItem}
106+
* that automatically adds the some default entries
106107
* at the top and bottom of the dialog.</p>
107108
* The dialog has the following structure:
108109
* <pre>
@@ -142,7 +143,7 @@ public Builder(final Activity activity,
142143
}
143144

144145
/**
145-
* <p>Create an instance of this Builder.</p>
146+
* <p>Create an instance of this {@link Builder} for a {@link StreamInfoItem}.</p>
146147
* <p>If {@code addDefaultEntriesAutomatically} is set to {@code true},
147148
* some default entries are added to the top and bottom of the dialog.</p>
148149
* The dialog has the following structure:

0 commit comments

Comments
 (0)