Commit 781aa274 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

now, all images centerCrop by default. For full view choose resolution

parent a3de9084
......@@ -71,7 +71,9 @@ class PhotosViewHolder(itemView: View) : CommonViewHolder<PhotoModel>(itemView)
.load(photo.url)
.thumbnail(model.resolutionList.lowelest()?.let { thumb ->
Glide.with(photoPreview).load(thumb.url).diskCacheStrategy(DiskCacheStrategy.ALL)
.centerCrop()
})
.centerCrop()
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(photoPreview)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment