diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChapterHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChapterHolder.kt index 5f7766dc7..a1a9c082e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChapterHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChapterHolder.kt @@ -9,6 +9,7 @@ import eu.davidea.viewholders.FlexibleViewHolder import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.database.models.Manga import eu.kanade.tachiyomi.databinding.ChaptersItemBinding +import eu.kanade.tachiyomi.source.LocalSource import java.util.Date class ChapterHolder( @@ -67,6 +68,7 @@ class ChapterHolder( binding.chapterDescription.text = "" } + binding.download.isVisible = item.manga.source != LocalSource.ID binding.download.setState(item.status) } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesHolder.kt index 1abb83190..1820e17fd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesHolder.kt @@ -1,6 +1,7 @@ package eu.kanade.tachiyomi.ui.recent.updates import android.view.View +import androidx.core.view.isVisible import com.bumptech.glide.load.engine.DiskCacheStrategy import com.bumptech.glide.load.resource.bitmap.CenterCrop import com.bumptech.glide.load.resource.bitmap.RoundedCorners @@ -11,6 +12,7 @@ import eu.kanade.tachiyomi.data.download.model.Download import eu.kanade.tachiyomi.data.glide.GlideApp import eu.kanade.tachiyomi.data.glide.toMangaThumbnail import eu.kanade.tachiyomi.databinding.UpdatesItemBinding +import eu.kanade.tachiyomi.source.LocalSource import eu.kanade.tachiyomi.util.system.getResourceColor /** @@ -66,6 +68,7 @@ class UpdatesHolder(private val view: View, private val adapter: UpdatesAdapter) } // Set chapter status + binding.download.isVisible = item.manga.source != LocalSource.ID notifyStatus(item.status) // Set cover diff --git a/app/src/main/res/layout/chapter_download_view.xml b/app/src/main/res/layout/chapter_download_view.xml index 236b0176c..a13819ecd 100644 --- a/app/src/main/res/layout/chapter_download_view.xml +++ b/app/src/main/res/layout/chapter_download_view.xml @@ -18,7 +18,7 @@ android:id="@+id/download_icon" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="4dp" + android:padding="3dp" app:srcCompat="@drawable/ic_arrow_downward_24dp" app:tint="@color/material_on_surface_emphasis_medium" tools:ignore="ContentDescription" />