diff options
Diffstat (limited to 'src/com/android/contacts/common/list/ContactListAdapter.java')
-rw-r--r-- | src/com/android/contacts/common/list/ContactListAdapter.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/contacts/common/list/ContactListAdapter.java b/src/com/android/contacts/common/list/ContactListAdapter.java index 4bfbdcf6..fb50e3ed 100644 --- a/src/com/android/contacts/common/list/ContactListAdapter.java +++ b/src/com/android/contacts/common/list/ContactListAdapter.java @@ -229,17 +229,19 @@ public abstract class ContactListAdapter extends ContactEntryListAdapter { } if (photoId != 0) { - getPhotoLoader().loadThumbnail(view.getPhotoView(), photoId, false, null); + getPhotoLoader().loadThumbnail(view.getPhotoView(), photoId, false, + getCircularPhotos(), null); } else { final String photoUriString = cursor.getString(ContactQuery.CONTACT_PHOTO_URI); final Uri photoUri = photoUriString == null ? null : Uri.parse(photoUriString); DefaultImageRequest request = null; if (photoUri == null) { - String displayName = cursor.getString(ContactQuery.CONTACT_DISPLAY_NAME); - String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); - request = new DefaultImageRequest(displayName, lookupKey); + request = getDefaultImageRequestFromCursor(cursor, + ContactQuery.CONTACT_DISPLAY_NAME, + ContactQuery.CONTACT_LOOKUP_KEY); } - getPhotoLoader().loadDirectoryPhoto(view.getPhotoView(), photoUri, false, request); + getPhotoLoader().loadDirectoryPhoto(view.getPhotoView(), photoUri, false, + getCircularPhotos(), request); } } |