mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Remove unused radio buttons from download dialog
This commit is contained in:
parent
dbb541d5fa
commit
7ca39daedc
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user