1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-09-29 07:20:50 +00:00

add a nonnull annotation to the context parameter in the DownloadDialog constructor.

This commit is contained in:
Zhidong Piao 2022-10-20 09:35:21 +11:00
parent 10e18ec9ea
commit 52963ba37d

View File

@ -159,7 +159,7 @@ public class DownloadDialog extends DialogFragment
* @param context the context to use just to obtain preferences and strings (will not be stored) * @param context the context to use just to obtain preferences and strings (will not be stored)
* @param info the info from which to obtain downloadable streams and other info (e.g. title) * @param info the info from which to obtain downloadable streams and other info (e.g. title)
*/ */
public DownloadDialog(final Context context, @NonNull final StreamInfo info) { public DownloadDialog(@NonNull final Context context, @NonNull final StreamInfo info) {
this.currentInfo = info; this.currentInfo = info;
// TODO: Adapt this code when the downloader support other types of stream deliveries // TODO: Adapt this code when the downloader support other types of stream deliveries