From bf25909972aeaed0989678064580684e79a0f254 Mon Sep 17 00:00:00 2001 From: synicalico <94773968+synicalico@users.noreply.github.com> Date: Wed, 3 Jan 2024 17:31:57 +0800 Subject: [PATCH] fix: crash on download menu --- .../java/com/github/libretube/ui/dialogs/DownloadDialog.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/DownloadDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/DownloadDialog.kt index 49b1e0ff2..ad5759529 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/DownloadDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/DownloadDialog.kt @@ -214,7 +214,7 @@ class DownloadDialog : DialogFragment() { getSel(VIDEO_DOWNLOAD_QUALITY), getSel(VIDEO_DOWNLOAD_FORMAT) )?.let { - binding.audioSpinner.selectedItemPosition = it + 1 + binding.videoSpinner.selectedItemPosition = it + 1 } getStreamSelection( audioStreams, @@ -225,7 +225,7 @@ class DownloadDialog : DialogFragment() { } subtitles.indexOfFirst { it.code == getSel(SUBTITLE_LANGUAGE) }.takeIf { it != -1 }?.let { - binding.audioSpinner.selectedItemPosition = it + 1 + binding.subtitleSpinner.selectedItemPosition = it + 1 } }