Skip to content

Commit 4d6693c

Browse files
author
Jean-Charles SORIN
committed
Rename SDWebImageAvoidAutoImageFill option to SDWebImageAvoidAutoSetImage
1 parent 5d2963a commit 4d6693c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SDWebImage/SDWebImageManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) {
8888
* have the hand before setting the image (apply a filter or add it with cross-fade animation for instance)
8989
* Use this flag if you want to manually set the image in the completion when success
9090
*/
91-
SDWebImageAvoidAutoImageFill = 1 << 11
91+
SDWebImageAvoidAutoSetImage = 1 << 11
9292
};
9393

9494
typedef void(^SDWebImageCompletionBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL);

SDWebImage/UIImageView+WebCache.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ - (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder
5454
if (!wself) return;
5555
dispatch_main_sync_safe(^{
5656
if (!wself) return;
57-
if (image && (options & SDWebImageAvoidAutoImageFill) && completedBlock)
57+
if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)
5858
{
5959
completedBlock(image, error, cacheType, url);
6060
return;

0 commit comments

Comments
 (0)