add source name in download queue (#4338)

pull/4204/head
Riztard Lanthorn 4 years ago committed by GitHub
parent 00285a782c
commit 628bd5d6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

@ -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)" />
<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
android:id="@+id/menu"
android:layout_width="44dp"

Loading…
Cancel
Save