diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index 2c3e5d2cd..3f58c2027 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -502,10 +502,14 @@ fun Context.tryLoadingWithPicasso(path: String, view: MySquareImageView, cropThu try { var builder = Picasso.get() .load(pathToLoad) - .centerCrop() - .fit() .stableKey(signature.toString()) + builder = if (cropThumbnails) { + builder.centerCrop().fit() + } else { + builder.centerInside() + } + if (roundCorners != ROUNDED_CORNERS_NONE) { val cornerSize = if (roundCorners == ROUNDED_CORNERS_SMALL) R.dimen.rounded_corner_radius_small else R.dimen.rounded_corner_radius_big val cornerRadius = resources.getDimension(cornerSize).toInt()