Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes AnimatedImageView designated inilializer not work #512

Merged

Conversation

zhongwuzw
Copy link
Contributor

Fixes #497 .

@bolsinga
Copy link
Contributor

bolsinga commented Jul 9, 2019

Please add a test.

@@ -61,6 +61,31 @@ - (void)commonInit:(PINCachedAnimatedImage *)animatedImage
{
_animatedImage = animatedImage;
_animatedImageRunLoopMode = NSRunLoopCommonModes;

[self initializeAnimatedImage:animatedImage];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a nil check here and make mark initializeAnimatedImage: as taking a non null animatedImage?

@garrettmoon
Copy link
Collaborator

Looks like the right fix to me! @DreamingInBinary do you mind testing to make sure this addresses your issue?

@zhongwuzw
Copy link
Contributor Author

Added test.

@bolsinga
Copy link
Contributor

Thanks for adding a test!

@garrettmoon
Copy link
Collaborator

Mind adding an entry to CHANGELOG.md for this one?

@zhongwuzw
Copy link
Contributor Author

Changelog added, I'll add changelog for all my PRs. :)

@ghost
Copy link

ghost commented Jul 11, 2019

🚫 CI failed with log

@garrettmoon
Copy link
Collaborator

Mind rebasing against master? I think I fixed a flakey test.

Copy link
Collaborator

@garrettmoon garrettmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@garrettmoon garrettmoon merged commit a10757e into pinterest:master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PINAnimatedImageView Initializer with GIF
3 participants