From 628bd5d6b42cedc463f17e4208b1cdaf4ba7869d Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Sat, 23 Jan 2021 22:15:30 +0700 Subject: [PATCH] add source name in download queue (#4338) --- .../tachiyomi/ui/download/DownloadHolder.kt | 3 +++ app/src/main/res/layout/download_item.xml | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt index 9668a68eaa..aa3e7b14b1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt @@ -39,6 +39,9 @@ class DownloadHolder(private val view: View, val adapter: DownloadAdapter) : // Update the manga title binding.mangaFullTitle.text = download.manga.title + // Update the manga source + binding.mangaSource.text = download.source.name + // Update the progress bar and the number of downloaded pages val pages = download.pages if (pages == null) { diff --git a/app/src/main/res/layout/download_item.xml b/app/src/main/res/layout/download_item.xml index c256a314d1..25cc991ff9 100644 --- a/app/src/main/res/layout/download_item.xml +++ b/app/src/main/res/layout/download_item.xml @@ -37,12 +37,13 @@ android:id="@+id/chapter_title" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginEnd="8dp" android:layout_marginTop="4dp" android:layout_toEndOf="@id/reorder" android:ellipsize="end" android:maxLines="1" android:textAppearance="@style/TextAppearance.Regular.Caption" - app:layout_constraintEnd_toStartOf="@+id/menu" + app:layout_constraintEnd_toStartOf="@+id/manga_source" app:layout_constraintStart_toStartOf="@+id/manga_full_title" app:layout_constraintTop_toBottomOf="@+id/manga_full_title" tools:text="Chapter Title" /> @@ -69,6 +70,18 @@ app:layout_constraintTop_toTopOf="@+id/manga_full_title" tools:text="(0/10)" /> + +