Skip to content

Commit

Permalink
fix crash when loading card images with unusual aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
connyduck committed Oct 27, 2024
1 parent 8256a1e commit 23a73f4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,7 @@ protected void setupCard(
cardImage.setScaleType(ImageView.ScaleType.CENTER_CROP);

RequestBuilder<Drawable> builder = Glide.with(cardImage.getContext())
.load(card.getImage())
.dontTransform();
.load(card.getImage());
if (statusDisplayOptions.useBlurhash() && !TextUtils.isEmpty(card.getBlurhash())) {
builder = builder.placeholder(decodeBlurHash(card.getBlurhash()));
}
Expand All @@ -1213,7 +1212,6 @@ protected void setupCard(

Glide.with(cardImage.getContext())
.load(decodeBlurHash(card.getBlurhash()))
.dontTransform()
.into(cardImage);
} else {
cardView.setOrientation(LinearLayout.HORIZONTAL);
Expand Down

0 comments on commit 23a73f4

Please sign in to comment.