private void setProgressBarVisibility() {
    boolean visible =
        mShowProgressBar
            && (mBitmap == null && mBitmapLoadingWorkerTask != null
                || mBitmapCroppingWorkerTask != null);
    mProgressBar.setVisibility(visible ? VISIBLE : INVISIBLE);
  }
Set visibility of progress bar when async loading/cropping is in process and show is enabled.
core/src/main/java/com/theartofdev/edmodo/cropper/CropImageView.java