Skip to content

Commit 75e2837

Browse files
authored
Sample: Fixes Wrong image behaviour when changing scale type to Center Inside (#522)
1 parent c8fc28c commit 75e2837

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

sample/src/main/kotlin/com/canhub/cropper/sample/SampleUsingImageViewFragment.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ internal class SampleUsingImageViewFragment : Fragment(), SampleOptionsBottomShe
8080
this.options = options
8181

8282
binding.cropImageView.setImageCropOptions(options)
83-
84-
if (options.scaleType == CropImageView.ScaleType.CENTER_INSIDE) {
85-
binding.cropImageView.imageResource = R.drawable.cat_small
86-
}
8783
}
8884

8985
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
-44 KB
Binary file not shown.

0 commit comments

Comments
 (0)