require the selection of an audio source before downloading

Changelog: changed
This commit is contained in:
Kai 2025-01-22 21:03:36 -06:00
parent 8c879c68d9
commit f31abac409
No known key found for this signature in database

View file

@ -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
))