/** Binds an image to the photo view. */ private void bindPhoto(Drawable drawable) { if (drawable != null) { if (mPhotoView != null) { mPhotoView.bindDrawable(drawable); } enableImageTransforms(true); mPhotoPreviewAndProgress.setVisibility(View.GONE); mProgressBarNeeded = false; } }