Bug/2894 covers not updating (#2908)

* Use a wrapper around Manga to supply glide with proper equals() and hashCode() impl. for caching

* reload image if url has changed

* ignore case for http scheme comparison

* more ignore case for http scheme comparison

* fix indenting

* use data class for MangaThumbnail
This commit is contained in:
MCAxiaz
2020-04-21 06:13:23 -07:00
committed by GitHub
parent a68c1adba6
commit b3611eef9d
15 changed files with 49 additions and 26 deletions
@@ -411,7 +411,7 @@ class PagerPageHolder(
}
val imageUrl = page.imageUrl
if (imageUrl.orEmpty().startsWith("http")) {
if (imageUrl.orEmpty().startsWith("http", true)) {
PagerButton(context, viewer).apply {
layoutParams = LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply {
setMargins(margins, margins, margins, margins)
@@ -454,7 +454,7 @@ class WebtoonPageHolder(
}
val imageUrl = page?.imageUrl
if (imageUrl.orEmpty().startsWith("http")) {
if (imageUrl.orEmpty().startsWith("http", true)) {
AppCompatButton(context).apply {
layoutParams = FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT).apply {
setMargins(0, margins, 0, margins)