Skip to content

Commit

Permalink
Code review markups
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscoomber committed Feb 26, 2021
1 parent 42da43a commit 4ba15d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cropper/src/main/java/com/canhub/cropper/CropImageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,6 @@ public void setImageUriAsync(Uri uri) {

// either no existing task is working or we canceled it, need to load new URI
clearImageInt();
mRestoreCropWindowRect = null;
mRestoreDegreesRotated = 0;
mCropOverlayView.setInitialCropWindowRect(null);
mBitmapLoadingWorkerJob = new WeakReference<>(new BitmapLoadingWorkerJob((FragmentActivity)getContext(),this, uri));
mBitmapLoadingWorkerJob.get().start();
Expand Down Expand Up @@ -1195,8 +1193,6 @@ private void setBitmap(
mImageView.clearAnimation();

clearImageInt();
mRestoreCropWindowRect = null;
mRestoreDegreesRotated = 0;

mBitmap = bitmap;
mImageView.setImageBitmap(mBitmap);
Expand Down Expand Up @@ -1238,6 +1234,8 @@ private void clearImageInt() {
mZoomOffsetY = 0;
mImageMatrix.reset();
mSaveInstanceStateBitmapUri = null;
mRestoreCropWindowRect = null;
mRestoreDegreesRotated = 0;

mImageView.setImageBitmap(null);

Expand Down

0 comments on commit 4ba15d4

Please sign in to comment.