From 5b5fcb4324a5ee3c308dac5f82b4d52fec65023f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 8 Sep 2023 15:42:58 +0200 Subject: [PATCH] fix: can't download new video while other download in progress --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index d631cf96d3..c611d92a2f 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -998,13 +998,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { binding.relPlayerDownload.setOnClickListener { if (streams.duration <= 0) { Toast.makeText(context, R.string.cannotDownload, Toast.LENGTH_SHORT).show() - } else if (!DownloadService.IS_DOWNLOAD_RUNNING) { + } else { val newFragment = DownloadDialog() newFragment.arguments = bundleOf(IntentData.videoId to videoId) newFragment.show(childFragmentManager, DownloadDialog::class.java.name) - } else { - Toast.makeText(context, R.string.dlisinprogress, Toast.LENGTH_SHORT) - .show() } }