Remove unused radio buttons from download dialog

This commit is contained in:
Bnyro 2023-01-14 18:28:15 +01:00
parent dbb541d5fa
commit 7ca39daedc
2 changed files with 0 additions and 29 deletions

View File

@ -31,14 +31,6 @@ class DownloadDialog(
fetchAvailableSources() fetchAvailableSources()
binding.audioRadio.setOnClickListener {
binding.videoSpinner.visibility = View.GONE
}
binding.videoRadio.setOnClickListener {
binding.videoSpinner.visibility = View.VISIBLE
}
binding.fileName.filters += InputFilter { source, start, end, _, _, _ -> binding.fileName.filters += InputFilter { source, start, end, _, _, _ ->
if (source.isNullOrBlank()) { if (source.isNullOrBlank()) {
return@InputFilter null return@InputFilter null

View File

@ -25,27 +25,6 @@
android:inputType="text" /> android:inputType="text" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checkedButton="@id/video_radio"
android:orientation="horizontal">
<RadioButton
android:id="@+id/video_radio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/video" />
<RadioButton
android:id="@+id/audio_radio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:text="@string/audio" />
</RadioGroup>
<Spinner <Spinner
android:id="@+id/video_spinner" android:id="@+id/video_spinner"
android:layout_width="match_parent" android:layout_width="match_parent"