Open ParticleCore opened 6 years ago
Looks like I can just use Target
directly since ViewTarget
extends Target
.
@sjudd I think this should be reopened. It's still the case. It's really strange to have a deprecated class returned from one of the main APIs:
According to the documentation and the 4.8.0 release notes
into
should be returning aTarget
when using anImageView
https://github.com/bumptech/glide/releases/tag/v4.8.0 https://bumptech.github.io/glide/doc/targets.html#cancellation-and-re-use https://bumptech.github.io/glide/javadocs/400/com/bumptech/glide/RequestBuilder.html#into-android.widget.ImageView-However it is still returning a
ViewTarget
despite the fact that the Javadoc in the source code itself states that it returns aTarget
As a result I cannot use the new version correctly because I am forced to use the deprecated
ViewTarget
and this keeps throwing theDeprecated
warning until it is no longer used.Is this intentional? If so then the documentation should reflect this behavior otherwise the code should be corrected to reflect the documentation.