mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
Merge pull request #1844 from nextcloud/bugfix/1817/DontResizeAvatarViews
Don't resize avatar views dynamically
This commit is contained in:
commit
9dd8dc451a
@ -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