@Override
          public void onCropWindowChanged(boolean inProgress) {
            handleCropWindowChanged(inProgress, true);
            OnSetCropOverlayReleasedListener listener = mOnCropOverlayReleasedListener;
            if (listener != null && !inProgress) {
              listener.onCropOverlayReleased(getCropRect());
            }
            OnSetCropOverlayMovedListener movedListener = mOnSetCropOverlayMovedListener;
            if (movedListener != null && inProgress) {
              movedListener.onCropOverlayMoved(getCropRect());
            }
          }
Task used to crop bitmap async from UI thread
core/src/main/java/com/theartofdev/edmodo/cropper/CropImageView.java