mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-07-13 17:23:56 +01:00
Revert "Use adaptive bitmap for dynamic shortcut icons to remove white border."
This reverts commit b98452f7b3c99bdf5d4e02ba5129a63846ed563a.
This commit is contained in:
@@ -127,17 +127,12 @@ public final class AvatarUtil {
|
||||
*/
|
||||
@WorkerThread
|
||||
public static @NonNull IconCompat getIconCompatForShortcut(@NonNull Context context, @NonNull Recipient recipient) {
|
||||
int size = AdaptiveBitmapMetrics.getInnerWidth();
|
||||
Bitmap inner;
|
||||
|
||||
int size = AdaptiveBitmapMetrics.getInnerWidth();
|
||||
if (recipient.isSelf()) {
|
||||
inner = DrawableUtil.toBitmap(getNoteToSelfDrawable(context, recipient.getAvatarColor(), size), size, size);
|
||||
} else {
|
||||
inner = getBitmapForNotification(context, recipient, size);
|
||||
Drawable noteToSelfDrawable = getNoteToSelfDrawable(context, recipient.getAvatarColor(), size);
|
||||
return IconCompat.createWithBitmap(DrawableUtil.toBitmap(noteToSelfDrawable, size, size));
|
||||
}
|
||||
|
||||
Bitmap wrapped = DrawableUtil.wrapBitmapForShortcutInfo(inner);
|
||||
return IconCompat.createWithAdaptiveBitmap(wrapped);
|
||||
return IconCompat.createWithBitmap(getBitmapForNotification(context, recipient, size));
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
|
||||
Reference in New Issue
Block a user