From 5e5243e5bdfd7d0bc14256e02557521168f5b16f Mon Sep 17 00:00:00 2001 From: Christine Coenen Date: Wed, 1 Nov 2023 13:44:36 +0100 Subject: [PATCH] Use original avatar image size Signed-off-by: Christine Coenen --- .../de/luhmer/owncloudnewsreader/NewsReaderListActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java index 5e01d3838..562954b18 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java @@ -67,6 +67,7 @@ import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.request.target.CustomTarget; +import com.bumptech.glide.request.target.Target; import com.bumptech.glide.request.transition.Transition; import com.google.android.material.snackbar.Snackbar; import com.nextcloud.android.sso.AccountImporter; @@ -1269,8 +1270,7 @@ private void prepareAccountMenuItem(MenuItem accountMenuItem) { .placeholder(R.drawable.ic_baseline_account_circle_24) .error(R.drawable.ic_baseline_account_circle_24) .circleCrop() - // TODO: Which are the correct dimensions in pixels? - .into(new CustomTarget(300, 300) { + .into(new CustomTarget(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL) { @Override public void onResourceReady(@NonNull Drawable resource, @Nullable Transition transition) { accountMenuItem.setIcon(resource);