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,12 +1,21 @@
<?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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<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/video_spinner"
android:layout_width="match_parent"
@ -35,4 +44,6 @@
app:hint="@string/captions"
app:icon="@drawable/ic_caption" />
</LinearLayout>
</LinearLayout>
</ScrollView>