Update the shouldAnimate status when animating status changes, to avoid that macOS call `animates = NO`, `setImage:newImage`, `aniamtes = YES`, the animation does not restarted issue

This commit is contained in:
DreamPiggy 2019-10-27 04:47:55 +08:00
parent fc4497d4f9
commit 3d1382a1cb
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