private void dismissProgressDialog() {
        if (mProgress != null) {
            mProgress.setVisibility(View.GONE);
        }
        BoxingViewActivity activity = getThisActivity();
        if (activity != null && activity.mProgressBar != null) {
            activity.mProgressBar.setVisibility(View.GONE);
        }
    }
resize the image or not according to size.

@param size the size of image
boxing-impl/src/main/java/com/bilibili/boxing_impl/ui/BoxingRawImageFragment.java