-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
When passing in nil to clear the animated image, remove anything sitting in super.image #250
When passing in nil to clear the animated image, remove anything sitting in super.image #250
Conversation
…ing in super.image
Looks safe -- what bug does this fix? |
@raphaelschaad If you have already set an animated image, then sometimes you'll have an image in super.image. The bug is that it is not always being updated (removed). There's already code in place (in the |
CHANGES 0723343 |
this cause this method sd_set normal image reset image = nil
|
This is not possible, as when we are setting the animated image we always check if there is I feel this change itself doesn't make sense and causes the extra issues mentioned in the above. I will revert the changes for now. |
@matrush Seems the cure is worse than the problem here. I agree this small change should be reverted. The side effect (as seen in freezy7's quoted code) is caused by the order of setting Additional thoughts: I find it confusing that |
…ed_image_nil_fix" This reverts commit 07c0893, reversing changes made to d7558c8. Flipboard#250 fix this error problem
We're already covering the case of clearing out super.nil when setAnimatedImage is not nil. This adds a small tweak to handle when you pass in nil.