1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Circular account images

This commit is contained in:
M66B 2024-06-24 21:58:06 +02:00
parent b561f62c26
commit 1a456146d0

View file

@ -236,8 +236,13 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
bm = ImageHelper.getScaledBitmap(is, avatar, null, scaleToPixels);
if (bm == null)
throw new FileNotFoundException(avatar);
return bm;
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean circular = prefs.getBoolean("circular", true);
bm = ImageHelper.makeCircular(bm, circular ? null : Helper.dp2pixels(context, 3));
return bm;
}
@Override