use better ImageView properties

should reduce memory consumption

Closes #3671
// FREEBIE
This commit is contained in:
Jake McGinty 2015-07-15 17:31:02 -07:00 committed by Moxie Marlinspike
parent e4299178f7
commit 44bfac9fe6
2 changed files with 4 additions and 2 deletions

View file

@ -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"

View file

@ -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() {