mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
don't resize avatar views dynamically
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
98a2a62cbf
commit
00c4b13f17
@ -154,7 +154,7 @@ public class DisplayUtils {
|
||||
}
|
||||
|
||||
private static void updateViewSize(@Nullable ImageInfo imageInfo, SimpleDraweeView draweeView) {
|
||||
if (imageInfo != null) {
|
||||
if (imageInfo != null && draweeView.getId() != R.id.messageUserAvatar) {
|
||||
int maxSize = draweeView.getContext().getResources().getDimensionPixelSize(R.dimen.maximum_file_preview_size);
|
||||
draweeView.getLayoutParams().width = imageInfo.getWidth() > maxSize ? maxSize : imageInfo.getWidth();
|
||||
draweeView.getLayoutParams().height = ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||
|
Loading…
Reference in New Issue
Block a user