Centercrop list in migration selection
This commit is contained in:
parent
6682c99fd1
commit
60d661fbd8
1 changed files with 3 additions and 7 deletions
|
@ -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)
|
|
||||||
.dontAnimate()
|
|
||||||
.into(cover_thumbnail)
|
.into(cover_thumbnail)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue