From f4baf4628eec5e303421e08f27536a23b726ee7b Mon Sep 17 00:00:00 2001 From: Tobi Date: Sun, 27 Oct 2024 09:41:45 +0100 Subject: [PATCH] Update app/src/main/java/org/schabi/newpipe/info_list/dialog/StreamDialogDefaultEntry.java --- .../newpipe/info_list/dialog/StreamDialogDefaultEntry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/info_list/dialog/StreamDialogDefaultEntry.java b/app/src/main/java/org/schabi/newpipe/info_list/dialog/StreamDialogDefaultEntry.java index 2359ee5377d..c7ac9556f85 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/dialog/StreamDialogDefaultEntry.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/dialog/StreamDialogDefaultEntry.java @@ -114,7 +114,8 @@ public enum StreamDialogDefaultEntry { fetchStreamInfoAndSaveToDatabase(fragment.requireContext(), item.getServiceId(), item.getUrl(), info -> { // Ensure the fragment is attached and its state hasn't been saved to avoid - // showing dialog during lifecycle changes or when the activity is paused. + // showing dialog during lifecycle changes or when the activity is paused, + // e.g. by selecting the download option and opening a different fragment. if (fragment.isAdded() && !fragment.isStateSaved()) { final DownloadDialog downloadDialog = new DownloadDialog(fragment.requireContext(), info);