mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 06:02:22 +00:00
Fix look of default group photo in conversation preferences view
Fixes #7022 // FREEBIE
This commit is contained in:
@@ -39,7 +39,7 @@ public class ContactPhotoFactory {
|
||||
}
|
||||
|
||||
public static ContactPhoto getDefaultGroupPhoto() {
|
||||
return new ResourceContactPhoto(R.drawable.ic_group_white_24dp);
|
||||
return new ResourceContactPhoto(R.drawable.ic_group_white_24dp, R.drawable.ic_group_large);
|
||||
}
|
||||
|
||||
public static ContactPhoto getContactPhoto(@NonNull Context context, @Nullable Uri uri, @NonNull Address address, @Nullable String name) {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class GeneratedContactPhoto implements ContactPhoto {
|
||||
|
||||
@Override
|
||||
public Drawable asCallCard(Context context) {
|
||||
return ContextCompat.getDrawable(context, R.drawable.ic_contact_picture_large);
|
||||
return ContextCompat.getDrawable(context, R.drawable.ic_person_large);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -16,9 +16,15 @@ import com.makeramen.roundedimageview.RoundedDrawable;
|
||||
public class ResourceContactPhoto implements ContactPhoto {
|
||||
|
||||
private final int resourceId;
|
||||
private final int callCardResourceId;
|
||||
|
||||
ResourceContactPhoto(@DrawableRes int resourceId) {
|
||||
this.resourceId = resourceId;
|
||||
this(resourceId, resourceId);
|
||||
}
|
||||
|
||||
ResourceContactPhoto(@DrawableRes int resourceId, @DrawableRes int callCardResourceId) {
|
||||
this.resourceId = resourceId;
|
||||
this.callCardResourceId = callCardResourceId;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -42,7 +48,7 @@ public class ResourceContactPhoto implements ContactPhoto {
|
||||
|
||||
@Override
|
||||
public Drawable asCallCard(Context context) {
|
||||
return context.getResources().getDrawable(resourceId);
|
||||
return context.getResources().getDrawable(callCardResourceId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user