Skip to content

Commit

Permalink
resolve shadow bug (issue CanHub#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingspride committed Feb 17, 2022
1 parent b172d90 commit 41465ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cropper/src/main/java/com/canhub/cropper/CropImageView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ class CropImageView @JvmOverloads constructor(context: Context, attrs: Attribute
fun getCroppedImage(reqWidth: Int, reqHeight: Int, options: RequestSizeOptions): Bitmap? {
var croppedBitmap: Bitmap? = null
if (originalBitmap != null) {
imageView.clearAnimation()
val newReqWidth = if (options != RequestSizeOptions.NONE) reqWidth else 0
val newReqHeight = if (options != RequestSizeOptions.NONE) reqHeight else 0
croppedBitmap = if (imageUri != null &&
Expand Down Expand Up @@ -894,7 +893,6 @@ class CropImageView @JvmOverloads constructor(context: Context, attrs: Attribute
degreesRotated: Int
) {
if (originalBitmap == null || originalBitmap != bitmap) {
imageView.clearAnimation()
clearImageInt()
originalBitmap = bitmap
imageView.setImageBitmap(originalBitmap)
Expand Down Expand Up @@ -967,7 +965,6 @@ class CropImageView @JvmOverloads constructor(context: Context, attrs: Attribute
) {
val bitmap = originalBitmap
if (bitmap != null) {
imageView.clearAnimation()
val currentTask =
if (bitmapCroppingWorkerJob != null) bitmapCroppingWorkerJob!!.get() else null
currentTask?.cancel()
Expand Down

0 comments on commit 41465ef

Please sign in to comment.