fix: DownloadPlaylistDialog overflowing on small devices

This commit is contained in:
Bnyro 2024-04-11 16:56:32 +02:00
parent cd1eb0f7ff
commit 81bdd71558
2 changed files with 36 additions and 26 deletions

View File

@ -48,7 +48,6 @@ class DownloadPlaylistDialog : DialogFragment() {
return MaterialAlertDialogBuilder(requireContext())
.setTitle(getString(R.string.download_playlist) + ": " + playlistName)
.setMessage(R.string.download_playlist_note)
.setView(binding.root)
.setPositiveButton(R.string.download) { _, _ ->
with(binding) {

View File

@ -1,38 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingTop="12dp"
android:paddingHorizontal="20dp">
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/video_spinner"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/video"
app:icon="@drawable/ic_video" />
android:orientation="vertical">
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/audio_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/audio"
app:icon="@drawable/ic_audio" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/download_playlist_note" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/audio_language_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/audio_language"
app:icon="@drawable/ic_region" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/video_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/video"
app:icon="@drawable/ic_video" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/subtitle_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/captions"
app:icon="@drawable/ic_caption" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/audio_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/audio"
app:icon="@drawable/ic_audio" />
</LinearLayout>
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/audio_language_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/audio_language"
app:icon="@drawable/ic_region" />
<com.github.libretube.ui.views.DropdownMenu
android:id="@+id/subtitle_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@string/captions"
app:icon="@drawable/ic_caption" />
</LinearLayout>
</ScrollView>