Show something for unnamed groups, allow us to have different default photos for groups vs. individuals

This commit is contained in:
Jake McGinty
2014-02-17 21:42:30 -08:00
parent 877ed8f59c
commit 25324a45b3
5 changed files with 57 additions and 15 deletions

View File

@@ -38,6 +38,15 @@ public class ContactPhotoFactory {
}
}
public static Bitmap getDefaultGroupPhoto(Context context) {
synchronized (defaultPhotoLock) {
if (defaultContactPhoto == null)
defaultContactPhoto = BitmapFactory.decodeResource(context.getResources(),
R.drawable.ic_contact_picture);
return defaultContactPhoto;
}
}
public static Bitmap getLocalUserContactPhoto(Context context, Uri uri) {
if (uri == null) return getDefaultContactPhoto(context);