mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
Merge pull request #5424 from synicalico/patch-1
fix: crash on download menu
This commit is contained in:
commit
217b50c293
@ -214,7 +214,7 @@ class DownloadDialog : DialogFragment() {
|
|||||||
getSel(VIDEO_DOWNLOAD_QUALITY),
|
getSel(VIDEO_DOWNLOAD_QUALITY),
|
||||||
getSel(VIDEO_DOWNLOAD_FORMAT)
|
getSel(VIDEO_DOWNLOAD_FORMAT)
|
||||||
)?.let {
|
)?.let {
|
||||||
binding.audioSpinner.selectedItemPosition = it + 1
|
binding.videoSpinner.selectedItemPosition = it + 1
|
||||||
}
|
}
|
||||||
getStreamSelection(
|
getStreamSelection(
|
||||||
audioStreams,
|
audioStreams,
|
||||||
@ -225,7 +225,7 @@ class DownloadDialog : DialogFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
subtitles.indexOfFirst { it.code == getSel(SUBTITLE_LANGUAGE) }.takeIf { it != -1 }?.let {
|
subtitles.indexOfFirst { it.code == getSel(SUBTITLE_LANGUAGE) }.takeIf { it != -1 }?.let {
|
||||||
binding.audioSpinner.selectedItemPosition = it + 1
|
binding.subtitleSpinner.selectedItemPosition = it + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user