mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 01:48:24 +01:00
Hide chapter download icons for local manga
This commit is contained in:
parent
01ff3af63f
commit
23bf7faf9f
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user