mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-22 07:58:25 +00:00
use better ImageView properties
should reduce memory consumption Closes #3671 // FREEBIE
This commit is contained in:
parent
e4299178f7
commit
44bfac9fe6
@ -6,6 +6,7 @@
|
|||||||
android:id="@+id/thumbnail_image"
|
android:id="@+id/thumbnail_image"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:scaleType="fitCenter"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:contentDescription="@string/conversation_item__mms_image_description"
|
android:contentDescription="@string/conversation_item__mms_image_description"
|
||||||
android:layout_margin="@dimen/media_bubble_border_width"
|
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()))
|
return Glide.with(getContext()).load(new DecryptableUri(masterSecret, slide.getThumbnailUri()))
|
||||||
|
.asBitmap()
|
||||||
.centerCrop();
|
.centerCrop();
|
||||||
}
|
}
|
||||||
|
|
||||||
private GenericRequestBuilder buildPlaceholderGlideRequest(Slide slide) {
|
private GenericRequestBuilder buildPlaceholderGlideRequest(Slide slide) {
|
||||||
return Glide.with(getContext()).load(slide.getPlaceholderRes(getContext().getTheme()))
|
return Glide.with(getContext()).load(slide.getPlaceholderRes(getContext().getTheme()))
|
||||||
.fitCenter()
|
.asBitmap()
|
||||||
.crossFade();
|
.fitCenter();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void animateOutProgress() {
|
private void animateOutProgress() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user