fresco
fresco copied to clipboard
Changing border color doesn't reflect in the view
We use GitHub Issues for bugs.
If you have a non-bug question, please ask on Stack Overflow: http://stackoverflow.com/questions/tagged/fresco
--- Please use this template, and delete everything above this line before submitting your issue ---
Description
Changing border color of SimpleDraweeView doesn't reflect in the view until image is set again
[FILL THIS OUT: Explain what you did, what you expected to happen, and what actually happens.]
Reproduction
- Create a SimpleDraweeView in xml, with any border width / padding / color
- Set an image
- Call conversationProfilePicture.hierarchy.roundingParams!!.borderColor = xxxx
- Observe that the border color doesn't change
- Now update the code to set an image URL to the SimpleDraweeView after setting border color
- Observe that if you set image URL after setting border color, border color updates as expected
[FILL THIS OUT: How can we reproduce the bug? Provide URLs to relevant images if possible, or a sample project.]
Solution
[OPTIONAL: Do you know what needs to be done to address this issue? Ideally, provide a pull request which fixes this issue.]
Workaround:
- Re-set the controller by calling
mySimpleDraweeView.controller = mySimpleDraweeView..controller
Check why re-setting the controller fixes the issue, and do the same in the code of setting border color
Additional Information
- Fresco version: [FILL THIS OUT] 2.6.0
- Platform version: [FILL THIS OUT: specific to a particular Android version? Device?]