Centercrop list in migration selection

This commit is contained in:
Jay 2020-05-03 13:17:26 -04:00
parent 6682c99fd1
commit 60d661fbd8

View file

@ -8,8 +8,6 @@ import eu.davidea.flexibleadapter.items.IFlexible
import eu.kanade.tachiyomi.data.glide.GlideApp import eu.kanade.tachiyomi.data.glide.GlideApp
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
import kotlinx.android.synthetic.main.manga_list_item.* 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( class MangaHolder(
view: View, view: View,
@ -23,10 +21,8 @@ class MangaHolder(
// Update the cover. // Update the cover.
GlideApp.with(itemView.context).clear(cover_thumbnail) GlideApp.with(itemView.context).clear(cover_thumbnail)
GlideApp.with(itemView.context) GlideApp.with(itemView.context).load(item.manga)
.load(item.manga) .diskCacheStrategy(DiskCacheStrategy.RESOURCE).centerCrop().dontAnimate()
.diskCacheStrategy(DiskCacheStrategy.RESOURCE) .into(cover_thumbnail)
.dontAnimate()
.into(cover_thumbnail)
} }
} }