mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
fix: DownloadPlaylistDialog overflowing on small devices
This commit is contained in:
parent
cd1eb0f7ff
commit
81bdd71558
@ -48,7 +48,6 @@ class DownloadPlaylistDialog : DialogFragment() {
|
|||||||
|
|
||||||
return MaterialAlertDialogBuilder(requireContext())
|
return MaterialAlertDialogBuilder(requireContext())
|
||||||
.setTitle(getString(R.string.download_playlist) + ": " + playlistName)
|
.setTitle(getString(R.string.download_playlist) + ": " + playlistName)
|
||||||
.setMessage(R.string.download_playlist_note)
|
|
||||||
.setView(binding.root)
|
.setView(binding.root)
|
||||||
.setPositiveButton(R.string.download) { _, _ ->
|
.setPositiveButton(R.string.download) { _, _ ->
|
||||||
with(binding) {
|
with(binding) {
|
||||||
|
@ -1,38 +1,49 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="12dp"
|
||||||
android:paddingHorizontal="20dp">
|
android:paddingHorizontal="20dp">
|
||||||
|
|
||||||
<com.github.libretube.ui.views.DropdownMenu
|
<LinearLayout
|
||||||
android:id="@+id/video_spinner"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:hint="@string/video"
|
android:orientation="vertical">
|
||||||
app:icon="@drawable/ic_video" />
|
|
||||||
|
|
||||||
<com.github.libretube.ui.views.DropdownMenu
|
<TextView
|
||||||
android:id="@+id/audio_spinner"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:text="@string/download_playlist_note" />
|
||||||
app:hint="@string/audio"
|
|
||||||
app:icon="@drawable/ic_audio" />
|
|
||||||
|
|
||||||
<com.github.libretube.ui.views.DropdownMenu
|
<com.github.libretube.ui.views.DropdownMenu
|
||||||
android:id="@+id/audio_language_spinner"
|
android:id="@+id/video_spinner"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:hint="@string/audio_language"
|
app:hint="@string/video"
|
||||||
app:icon="@drawable/ic_region" />
|
app:icon="@drawable/ic_video" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.DropdownMenu
|
<com.github.libretube.ui.views.DropdownMenu
|
||||||
android:id="@+id/subtitle_spinner"
|
android:id="@+id/audio_spinner"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:hint="@string/captions"
|
app:hint="@string/audio"
|
||||||
app:icon="@drawable/ic_caption" />
|
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>
|
Loading…
Reference in New Issue
Block a user