Add more producer names to origin mapping
@@ -16,7 +16,11 @@ import com.facebook.imagepipeline.producers.LocalContentUriFetchProducer;
import com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer;
import com.facebook.imagepipeline.producers.LocalFileFetchProducer;
import com.facebook.imagepipeline.producers.LocalResourceFetchProducer;
+import com.facebook.imagepipeline.producers.LocalVideoThumbnailProducer;
import com.facebook.imagepipeline.producers.NetworkFetchProducer;
+import com.facebook.imagepipeline.producers.PartialDiskCacheProducer;
+import com.facebook.imagepipeline.producers.PostprocessedBitmapMemoryCacheProducer;
+import com.facebook.imagepipeline.producers.QualifiedResourceFetchProducer;
public class ImageOriginUtils {
@@ -44,11 +48,16 @@ public class ImageOriginUtils {
switch (producerName) {
case BitmapMemoryCacheGetProducer.PRODUCER_NAME:
case BitmapMemoryCacheProducer.PRODUCER_NAME:
+ case PostprocessedBitmapMemoryCacheProducer.PRODUCER_NAME:
return ImageOrigin.MEMORY_BITMAP;
+
case EncodedMemoryCacheProducer.PRODUCER_NAME:
return ImageOrigin.MEMORY_ENCODED;
+
case DiskCacheReadProducer.PRODUCER_NAME:
+ case PartialDiskCacheProducer.PRODUCER_NAME:
return ImageOrigin.DISK;
+
case NetworkFetchProducer.PRODUCER_NAME:
return ImageOrigin.NETWORK;
@@ -58,6 +67,8 @@ public class ImageOriginUtils {
case LocalAssetFetchProducer.PRODUCER_NAME:
case LocalContentUriFetchProducer.PRODUCER_NAME:
case LocalContentUriThumbnailFetchProducer.PRODUCER_NAME:
+ case LocalVideoThumbnailProducer.PRODUCER_NAME:
+ case QualifiedResourceFetchProducer.PRODUCER_NAME:
return ImageOrigin.LOCAL;
default:
