Skip to content

Commit

Permalink
Rename SDWebImageAvoidAutoImageFill option to SDWebImageAvoidAutoSetI…
Browse files Browse the repository at this point in the history
…mage
  • Loading branch information
Jean-Charles SORIN committed Jul 1, 2015
1 parent 5d2963a commit 4d6693c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SDWebImage/SDWebImageManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) {
* have the hand before setting the image (apply a filter or add it with cross-fade animation for instance)
* Use this flag if you want to manually set the image in the completion when success
*/
SDWebImageAvoidAutoImageFill = 1 << 11
SDWebImageAvoidAutoSetImage = 1 << 11
};

typedef void(^SDWebImageCompletionBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL);
Expand Down
2 changes: 1 addition & 1 deletion SDWebImage/UIImageView+WebCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ - (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder
if (!wself) return;
dispatch_main_sync_safe(^{
if (!wself) return;
if (image && (options & SDWebImageAvoidAutoImageFill) && completedBlock)
if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)
{
completedBlock(image, error, cacheType, url);
return;
Expand Down

0 comments on commit 4d6693c

Please sign in to comment.