Skip to content

Commit

Permalink
Fix sticker scaling.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and greyson-signal committed Feb 15, 2023
1 parent 6100160 commit c1c7f57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void setSlide(@NonNull GlideRequests glideRequests, @NonNull Slide slide)
boolean showControls = slide.asAttachment().getUri() == null;

if (slide.hasSticker()) {
image.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
image.setScaleType(ImageView.ScaleType.FIT_CENTER);
image.setImageResource(glideRequests, slide, showControls, false);
} else {
image.setScaleType(ImageView.ScaleType.CENTER_CROP);
Expand Down

0 comments on commit c1c7f57

Please sign in to comment.