From 5bf46f8e8515826dbdd9f302f366930d9d36b51a Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 14 Jan 2020 18:53:13 +0100 Subject: show avatar correctly --- src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 1 + src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java | 1 + 2 files changed, 2 insertions(+) (limited to 'src/main/java/de/pixart/messenger/ui') diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index 01fdb7c0e..98f69a29c 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -243,6 +243,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers view.setMaxHeight(R.dimen.avatar_big); view.setMaxWidth(R.dimen.avatar_big); view.setBackgroundColor(Color.WHITE); + view.setScaleType(ImageView.ScaleType.FIT_XY); AvatarWorkerTask.loadAvatar(mConversation, view, R.dimen.avatar_big); AlertDialog.Builder builder = new AlertDialog.Builder(ConferenceDetailsActivity.this); builder.setView(view); diff --git a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java index 968042689..15f5b0058 100644 --- a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java @@ -559,6 +559,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp view.setMaxHeight(R.dimen.avatar_big); view.setMaxWidth(R.dimen.avatar_big); view.setBackgroundColor(Color.WHITE); + view.setScaleType(ImageView.ScaleType.FIT_XY); AvatarWorkerTask.loadAvatar(mConversation, view, R.dimen.avatar_big); AlertDialog.Builder builder = new AlertDialog.Builder(ContactDetailsActivity.this); builder.setView(view); -- cgit v1.2.3