add source name in download queue (#4338)
This commit is contained in:
parent
00285a782c
commit
628bd5d6b4
2 changed files with 17 additions and 1 deletions
|
@ -39,6 +39,9 @@ class DownloadHolder(private val view: View, val adapter: DownloadAdapter) :
|
||||||
// Update the manga title
|
// Update the manga title
|
||||||
binding.mangaFullTitle.text = download.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
|
// Update the progress bar and the number of downloaded pages
|
||||||
val pages = download.pages
|
val pages = download.pages
|
||||||
if (pages == null) {
|
if (pages == null) {
|
||||||
|
|
|
@ -37,12 +37,13 @@
|
||||||
android:id="@+id/chapter_title"
|
android:id="@+id/chapter_title"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:layout_toEndOf="@id/reorder"
|
android:layout_toEndOf="@id/reorder"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textAppearance="@style/TextAppearance.Regular.Caption"
|
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_constraintStart_toStartOf="@+id/manga_full_title"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
|
app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
|
||||||
tools:text="Chapter Title" />
|
tools:text="Chapter Title" />
|
||||||
|
@ -69,6 +70,18 @@
|
||||||
app:layout_constraintTop_toTopOf="@+id/manga_full_title"
|
app:layout_constraintTop_toTopOf="@+id/manga_full_title"
|
||||||
tools:text="(0/10)" />
|
tools:text="(0/10)" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/manga_source"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_toEndOf="@id/chapter_title"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:textAppearance="@style/TextAppearance.Regular.Caption.Hint"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/chapter_title"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/menu"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/chapter_title"
|
||||||
|
tools:text="Manga Source" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/menu"
|
android:id="@+id/menu"
|
||||||
android:layout_width="44dp"
|
android:layout_width="44dp"
|
||||||
|
|
Reference in a new issue