From f31abac409808e271eb454672d07a676520f2a54 Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 22 Jan 2025 21:03:36 -0600 Subject: [PATCH] require the selection of an audio source before downloading Changelog: changed --- .../main/java/com/futo/platformplayer/UISlideOverlays.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/futo/platformplayer/UISlideOverlays.kt b/app/src/main/java/com/futo/platformplayer/UISlideOverlays.kt index 116153ce..ce68b361 100644 --- a/app/src/main/java/com/futo/platformplayer/UISlideOverlays.kt +++ b/app/src/main/java/com/futo/platformplayer/UISlideOverlays.kt @@ -343,7 +343,9 @@ class UISlideOverlays { selectedVideoVariant = DashManifestSourceDelegate(source, it.format.width, it.format.height, it.format.containerMimeType!!) slideUpMenuOverlay.selectOption(videoButtons, it) - slideUpMenuOverlay.setOk(container.context.getString(R.string.download)) + if (audioButtons.isEmpty()){ + slideUpMenuOverlay.setOk(container.context.getString(R.string.download)) + } }, invokeParent = false ) ) @@ -466,7 +468,9 @@ class UISlideOverlays { source.setPreferredHeight(it.height) selectedVideoVariant = source slideUpMenuOverlay.selectOption(videoButtons, it) - slideUpMenuOverlay.setOk(container.context.getString(R.string.download)) + if (audioButtons.isEmpty()){ + slideUpMenuOverlay.setOk(container.context.getString(R.string.download)) + } }, invokeParent = false ))