Fix look of default group photo in conversation preferences view

Fixes #7022
// FREEBIE
This commit is contained in:
Moxie Marlinspike
2017-10-03 13:56:01 -07:00
parent 9389fe47bd
commit b34eb08088
7 changed files with 22 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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

View File

@@ -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