use better ImageView properties

should reduce memory consumption

Closes #3671
// FREEBIE
pull/1/head
Jake McGinty 9 years ago committed by Moxie Marlinspike
parent e4299178f7
commit 44bfac9fe6

@ -6,6 +6,7 @@
android:id="@+id/thumbnail_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
android:contentDescription="@string/conversation_item__mms_image_description"
android:layout_margin="@dimen/media_bubble_border_width"

@ -193,13 +193,14 @@ public class ThumbnailView extends FrameLayout {
}
return Glide.with(getContext()).load(new DecryptableUri(masterSecret, slide.getThumbnailUri()))
.asBitmap()
.centerCrop();
}
private GenericRequestBuilder buildPlaceholderGlideRequest(Slide slide) {
return Glide.with(getContext()).load(slide.getPlaceholderRes(getContext().getTheme()))
.fitCenter()
.crossFade();
.asBitmap()
.fitCenter();
}
private void animateOutProgress() {

Loading…
Cancel
Save