Skip to content

Commit

Permalink
Sample: Fixes Wrong image behaviour when changing scale type to Cente…
Browse files Browse the repository at this point in the history
…r Inside (#522)
  • Loading branch information
prasad-333 authored Nov 1, 2022
1 parent c8fc28c commit 75e2837
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ internal class SampleUsingImageViewFragment : Fragment(), SampleOptionsBottomShe
this.options = options

binding.cropImageView.setImageCropOptions(options)

if (options.scaleType == CropImageView.ScaleType.CENTER_INSIDE) {
binding.cropImageView.imageResource = R.drawable.cat_small
}
}

override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
Expand Down
Binary file removed sample/src/main/res/drawable-nodpi/cat_small.jpg
Binary file not shown.

0 comments on commit 75e2837

Please sign in to comment.