diff options
Diffstat (limited to 'java/com/android/dialer/glidephotomanager/impl/GlidePhotoManagerImpl.java')
-rw-r--r-- | java/com/android/dialer/glidephotomanager/impl/GlidePhotoManagerImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/com/android/dialer/glidephotomanager/impl/GlidePhotoManagerImpl.java b/java/com/android/dialer/glidephotomanager/impl/GlidePhotoManagerImpl.java index 45af4e3e2..202307a29 100644 --- a/java/com/android/dialer/glidephotomanager/impl/GlidePhotoManagerImpl.java +++ b/java/com/android/dialer/glidephotomanager/impl/GlidePhotoManagerImpl.java @@ -49,7 +49,10 @@ public class GlidePhotoManagerImpl implements GlidePhotoManager { @Override public void loadQuickContactBadge(QuickContactBadge badge, PhotoInfo photoInfo) { Assert.isMainThread(); - badge.assignContactUri(parseUri(photoInfo.getLookupUri())); + badge.assignContactUri( + TextUtils.isEmpty(photoInfo.getLookupUri()) + ? DefaultLookupUriGenerator.generateUri(photoInfo) + : parseUri(photoInfo.getLookupUri())); badge.setOverlay(null); GlideRequest<Drawable> request = buildRequest(GlideApp.with(badge), photoInfo); request.into(badge); |