Skip to content

Commit

Permalink
Use original avatar image size
Browse files Browse the repository at this point in the history
Signed-off-by: Christine Coenen <[email protected]>
  • Loading branch information
cemrich committed Nov 1, 2023
1 parent df94416 commit 5e5243e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Drawable>(300, 300) {
.into(new CustomTarget<Drawable>(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL) {
@Override
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
accountMenuItem.setIcon(resource);
Expand Down

0 comments on commit 5e5243e

Please sign in to comment.