mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-29 13:16:01 +01:00
Adjust new avatar picker logic.
* Better emoji rendering support * Deleting an avatar will deselect it * Added padding to the bottom of recyclers * Disabled save if no edit / selection has been made. * Clearing and saving will remove a user's avatar.
This commit is contained in:
committed by
Greyson Parrelli
parent
a75f634c0a
commit
a27d60f830
@@ -54,7 +54,7 @@ public class GeneratedContactPhoto implements FallbackContactPhoto {
|
||||
if (!TextUtils.isEmpty(character)) {
|
||||
Avatars.ForegroundColor foregroundColor = Avatars.getForegroundColor(color);
|
||||
Avatar.Text avatar = new Avatar.Text(character, new Avatars.ColorPair(color, foregroundColor), Avatar.DatabaseId.DoNotPersist.INSTANCE);
|
||||
Drawable foreground = AvatarRenderer.createTextDrawable(context, avatar, inverted, targetSize, false);
|
||||
Drawable foreground = AvatarRenderer.createTextDrawable(context, avatar, inverted, targetSize);
|
||||
Drawable background = Objects.requireNonNull(ContextCompat.getDrawable(context, R.drawable.circle_tintable));
|
||||
|
||||
background.setColorFilter(new SimpleColorFilter(inverted ? foregroundColor.getColorInt() : color.colorInt()));
|
||||
|
||||
Reference in New Issue
Block a user