From 60d661fbd88b8ba11d43929a1fa37c49e9e2e3b1 Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 3 May 2020 13:17:26 -0400 Subject: [PATCH] Centercrop list in migration selection --- .../eu/kanade/tachiyomi/ui/migration/MangaHolder.kt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MangaHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MangaHolder.kt index 0f7b6c6802..92a4f91028 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MangaHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MangaHolder.kt @@ -8,8 +8,6 @@ import eu.davidea.flexibleadapter.items.IFlexible import eu.kanade.tachiyomi.data.glide.GlideApp import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder import kotlinx.android.synthetic.main.manga_list_item.* -import kotlinx.android.synthetic.main.manga_list_item.subtitle -import kotlinx.android.synthetic.main.manga_list_item.title class MangaHolder( view: View, @@ -23,10 +21,8 @@ class MangaHolder( // Update the cover. GlideApp.with(itemView.context).clear(cover_thumbnail) - GlideApp.with(itemView.context) - .load(item.manga) - .diskCacheStrategy(DiskCacheStrategy.RESOURCE) - .dontAnimate() - .into(cover_thumbnail) + GlideApp.with(itemView.context).load(item.manga) + .diskCacheStrategy(DiskCacheStrategy.RESOURCE).centerCrop().dontAnimate() + .into(cover_thumbnail) } }