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:
parent
b561f62c26
commit
1a456146d0
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue