Skip to content

Glide 4.1.0

Compare
Choose a tag to compare
@sjudd sjudd released this 01 Sep 15:07
· 1228 commits to master since this release

This is the August release of Glide.

Bug fixes

Features

Build changes

API/Behavior changes:

  1. After 9d10097, if you attempt to start a request that is exactly the same as the request already in progress for a given View or Target, your new request will be ignored and the old request will be allowed to complete. If you need to override this behavior, you can do so by manually calling clear() on the View or Target before starting your new load. Consider filing an issue if you encounter a problem with this feature.
  2. After 06aced3, Glide will always use a TransitionDrawable to run the cross fade transition. Previously cross fade would use a ViewAnimation for the first image in a request to complete and only use TransitionDrawables for animating from thumbnails to full images. RecyclerView does not handle ViewAnimations run outside of its item animator so we've removed the use of ViewAnimation. As a result, if you use views like CircularImageView that can't handle animated Drawables, you may see a change in behavior. Consider using a ViewAnimation based Transition instead of a cross fade if you're not loading in a RecyclerView or file a new issue if you encounter a situation where neither cross fade nor a ViewAnimation will work.
  3. After d83de42, setting DecodeFormat.ARGB_8888 or DecodeFormat.RGB_565 will cause Glide to attempt to decode Bitmaps using Bitmap.Config.HARDWARE. Hardware Bitmaps are more memory efficient, but can't be drawn in software and don't expose their pixels so methods like getPixel() will throw an exception, as will attempting to draw a hardware bitmap to a Canvas. You can avoid using Hardware Bitmaps for an individual request by calling RequestOptions#disallowHardwareConfig. You can also disallow hardware configurations for your entire application by passing in RequestOptions into GlideBuilder in your AppGlideModule.