From ea39cb868f734dff6492e0197e6981a064995cea Mon Sep 17 00:00:00 2001 From: polymorphicshade Date: Sat, 20 Feb 2021 22:08:17 -0700 Subject: [PATCH] fixed a download dialog issue this would occur if you don't have the video automatically playing before attempting to download it --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 7e87e71d2..e15abd9a0 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -1640,7 +1640,7 @@ public final class VideoDetailFragment downloadDialog.setAudioStreams(currentInfo.getAudioStreams()); downloadDialog.setSelectedVideoStream(selectedVideoStreamIndex); downloadDialog.setSubtitleStreams(currentInfo.getSubtitles()); - downloadDialog.setVideoSegments(player.getVideoSegments()); + downloadDialog.setVideoSegments(videoSegments); downloadDialog.show(activity.getSupportFragmentManager(), "downloadDialog"); } catch (final Exception e) {