Merge pull request #2874 from dreampiggy/fix_behavior_macOS_animatedimage_animates_and_set_image

Fix SDAnimatedImage on macOS use extra aniamtes property check, which is not intuitive and cause extra setup before usage
This commit is contained in:
DreamPiggy 2019-10-27 05:31:21 +08:00 committed by GitHub
commit 6c36b7542a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ static NSUInteger SDDeviceFreeMemory() {
- (void)updateShouldAnimate
{
#if SD_MAC
BOOL isVisible = self.window && self.superview && ![self isHidden] && self.alphaValue > 0.0 && self.animates;
BOOL isVisible = self.window && self.superview && ![self isHidden] && self.alphaValue > 0.0;
#else
BOOL isVisible = self.window && self.superview && ![self isHidden] && self.alpha > 0.0;
#endif