Skip to content

Glide 3.5.0

Compare
Choose a tag to compare
@sjudd sjudd released this 25 Jan 22:46
· 1976 commits to master since this release

Glide 3.5 is an incremental release containing a small number of new features and some significant bug fixes.

You can see a complete list of issues in the corresponding milestone.

Features

  • Add GlideModules for simple lazy configuration (#311).
  • Support for an original size (#274):
// You can override a view's size to request the original image:
Glide.with(context)
    .load(myUrl)
    .override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)
    .into(myImageVIew);

// SimpleTarget also now defaults to SIZE_ORIGINAL:
Glide.with(context)
    .load(myUrl)
    .into(new SimpleTarget<GlideDrawable>() {
        @Override
        public void onResourceReady(GlideDrawable drawable, GlideAnimation animation) {
            ...
        }
    });
  • Improved ListPreloader API, including an interface allowing different sizes per position thanks to @DavidWiesner (#273)
  • [ALPHA] AppWidget and Notification Target implementations thanks to @pavlospt (#242):
AppWidgetTarget widgetTarget = 
        new AppWidgetTarget(context, remoteViews, R.id.view_id, 300, 400, R.id.widget_id);

Glide.with(context)
    .asBitmap()
    .load(myUrl)
    .into(widgetTarget);
  • Override values are passed through to thumbnails (#236).
  • Automatically call trim/clear memory based on ComponentCallbacks (9063f6c).

Build/Infrastructure

  • Updated to Robolectric 2.4 thanks to @TWiStErRob (#249).
  • Updated to Android gradle plugin 1.0+ (ba32d32).
  • Added Intellij files for easier development (e34df44)

Bugs

Performance

  • Fixed needlessly copying Bitmaps decoded from data without an EXIF orientation tag (#270).
  • Freed thumbnails eagerly when full loads finish (#237).
  • Fixed a strict mode violation initializing the disk cache on Lollipop (#298).
  • Fixed a NetworkOnMainThread exception in the OkHttp integration library (#257)
  • Calculate sample size correctly thanks to @jisung (#288)

Rendering

  • Worked around a framework issue in KitKat and Lollipop causing certain types of Bitmaps to render old data (#301).
  • Fixed large BMPs failing to render (#283).
  • Fixed decode failure for images with minimal EXIF segments (#286).
  • Fixed a bug causing shared color filters (#276).

Other

  • Fixed a crash when the Glide singleton is instantiated on a background thread (#295).
  • Fixed a crash when completing loads started or cancelled other loads (#303).
  • Fixed skipMemoryCache not always skipping the memory cache (#258).