/** * Applies the default image to the current view. If the request is URI-based, looks for * the contact type encoded fragment to determine if this is a request for a business photo, * in which case we will load the default business photo. * * @param view The current image view to apply the image to. * @param isCircular Whether the image is circular or not. */ public void applyDefaultImage(ImageView view, boolean isCircular) { final DefaultImageRequest request; if (isCircular) { request = ContactPhotoManager.isBusinessContactUri(mUri) ? DefaultImageRequest.EMPTY_CIRCULAR_BUSINESS_IMAGE_REQUEST : DefaultImageRequest.EMPTY_CIRCULAR_DEFAULT_IMAGE_REQUEST; } else { request = ContactPhotoManager.isBusinessContactUri(mUri) ? DefaultImageRequest.EMPTY_DEFAULT_BUSINESS_IMAGE_REQUEST : DefaultImageRequest.EMPTY_DEFAULT_IMAGE_REQUEST; } mDefaultProvider.applyDefaultImage(view, mRequestedExtent, mDarkTheme, request); } }