Skip to content

Commit f4baf46

Browse files
authored
Update app/src/main/java/org/schabi/newpipe/info_list/dialog/StreamDialogDefaultEntry.java
1 parent 0190bce commit f4baf46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public enum StreamDialogDefaultEntry {
114114
fetchStreamInfoAndSaveToDatabase(fragment.requireContext(), item.getServiceId(),
115115
item.getUrl(), info -> {
116116
// Ensure the fragment is attached and its state hasn't been saved to avoid
117-
// showing dialog during lifecycle changes or when the activity is paused.
117+
// showing dialog during lifecycle changes or when the activity is paused,
118+
// e.g. by selecting the download option and opening a different fragment.
118119
if (fragment.isAdded() && !fragment.isStateSaved()) {
119120
final DownloadDialog downloadDialog =
120121
new DownloadDialog(fragment.requireContext(), info);

0 commit comments

Comments
 (0)