Skip to content

Commit

Permalink
Update error message in AnimatedImageDecoder
Browse files Browse the repository at this point in the history
Replace an occurrence of 'webp' with generic 'image' since the
class supports more than just webp now.

PiperOrigin-RevId: 511910050
  • Loading branch information
vigneshvg authored and glide-copybara-robot committed Feb 23, 2023
1 parent f73f003 commit e58802e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Resource<Drawable> decode(@NonNull Source source, int width, int height, @NonNul
source, new DefaultOnHeaderDecodedListener(width, height, options));
if (!(decoded instanceof AnimatedImageDrawable)) {
throw new IOException(
"Received unexpected drawable type for animated webp, failing: " + decoded);
"Received unexpected drawable type for animated image, failing: " + decoded);
}
return new AnimatedImageDrawableResource((AnimatedImageDrawable) decoded);
}
Expand Down

0 comments on commit e58802e

Please sign in to comment.