fix: only show version dialog when there are more than 2 remote sources

This commit is contained in:
Jarne Demeulemeester 2023-05-29 16:55:26 +02:00
parent 1399c77b5d
commit ebf125c064
No known key found for this signature in database
GPG key ID: 1E5C6AFBD622E9F5

View file

@ -150,7 +150,7 @@ class MovieFragment : Fragment() {
binding.itemActions.playButton.isEnabled = false
binding.itemActions.playButton.setIconResource(android.R.color.transparent)
binding.itemActions.progressPlay.isVisible = true
if (viewModel.item.sources.size > 1) {
if (viewModel.item.sources.filter { it.type == FindroidSourceType.REMOTE }.size > 1) {
val dialog = getVideoVersionDialog(
requireContext(), viewModel.item,
onItemSelected = {