mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Add support for updated server badge image url formats.
This commit is contained in:
committed by
Greyson Parrelli
parent
6e00920c95
commit
8d0acb277c
@@ -1373,9 +1373,10 @@ public class RecipientDatabase extends Database {
|
||||
badges.add(new Badge(
|
||||
protoBadge.getId(),
|
||||
Badge.Category.Companion.fromCode(protoBadge.getCategory()),
|
||||
Uri.parse(protoBadge.getImageUrl()),
|
||||
protoBadge.getName(),
|
||||
protoBadge.getDescription(),
|
||||
Uri.parse(protoBadge.getImageUrl()),
|
||||
protoBadge.getImageDensity(),
|
||||
protoBadge.getExpiration(),
|
||||
protoBadge.getVisible()
|
||||
));
|
||||
@@ -1691,7 +1692,8 @@ public class RecipientDatabase extends Database {
|
||||
.setExpiration(badge.getExpirationTimestamp())
|
||||
.setVisible(badge.getVisible())
|
||||
.setName(badge.getName())
|
||||
.setImageUrl(badge.getImageUrl().toString()));
|
||||
.setImageUrl(badge.getImageUrl().toString())
|
||||
.setImageDensity(badge.getImageDensity()));
|
||||
}
|
||||
|
||||
ContentValues values = new ContentValues(1);
|
||||
|
||||
Reference in New Issue
Block a user