The Callback class's Javadoc says that direct references to it should be managed by clients, because ResolveUriTask uses a WeakReference for its Callback.
Unfortunately, our README didn't accurately reflect this important part of its usage (the code snippets showed anonymous inner Callback classes), and our ImageStream implementation also was not handling it properly.
Changes
Update code snippets in README to show intended usage.
Update ImageStream to keep a strong reference to Callback.
Bump patch version (considering this code change to be a fix of broken/unintended behaviour).
Description
The Callback class's Javadoc says that direct references to it should be managed by clients, because ResolveUriTask uses a WeakReference for its Callback.
Unfortunately, our README didn't accurately reflect this important part of its usage (the code snippets showed anonymous inner Callback classes), and our ImageStream implementation also was not handling it properly.
Changes
Reviewers
@zendesk/adventure-android @zendesk/two-brothers-android @zendesk/ogham-android
FYI
@schlan
References
89
Risks