mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
use better ImageView properties
should reduce memory consumption Closes #3671 // FREEBIE
This commit is contained in:
parent
e4299178f7
commit
44bfac9fe6
2 changed files with 4 additions and 2 deletions
|
@ -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…
Reference in a new issue