diff options
Diffstat (limited to 'java/com/android/dialer/glidephotomanager/GlidePhotoManager.java')
-rw-r--r-- | java/com/android/dialer/glidephotomanager/GlidePhotoManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/dialer/glidephotomanager/GlidePhotoManager.java b/java/com/android/dialer/glidephotomanager/GlidePhotoManager.java index 519a39481..de16c387d 100644 --- a/java/com/android/dialer/glidephotomanager/GlidePhotoManager.java +++ b/java/com/android/dialer/glidephotomanager/GlidePhotoManager.java @@ -17,6 +17,7 @@ package com.android.dialer.glidephotomanager; import android.support.annotation.MainThread; +import android.widget.ImageView; import android.widget.QuickContactBadge; /** Class to load photo for call/contacts */ @@ -30,4 +31,13 @@ public interface GlidePhotoManager { */ @MainThread void loadQuickContactBadge(QuickContactBadge badge, PhotoInfo photoInfo); + + /** + * Load {@code photoInfo} into the {@code imageView}. The loading is performed in the background + * and a placeholder will be used appropriately. {@code imageView} must be already attached to an + * activity/fragment, and the load will be automatically canceled if the lifecycle of the activity + * ends. + */ + @MainThread + void loadContactPhoto(ImageView imageView, PhotoInfo photoInfo); } |