From d0a076cea8f972afc73451c067a80f2776e0608c Mon Sep 17 00:00:00 2001 From: Colin White Date: Fri, 4 Jun 2021 15:44:10 -0500 Subject: [PATCH] Fix incorrect data source returned by ResourceUriFetcher. --- coil-base/src/main/java/coil/fetch/ResourceUriFetcher.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coil-base/src/main/java/coil/fetch/ResourceUriFetcher.kt b/coil-base/src/main/java/coil/fetch/ResourceUriFetcher.kt index e65d2d7b38..dde668b862 100644 --- a/coil-base/src/main/java/coil/fetch/ResourceUriFetcher.kt +++ b/coil-base/src/main/java/coil/fetch/ResourceUriFetcher.kt @@ -66,13 +66,13 @@ internal class ResourceUriFetcher( drawable }, isSampled = isVector, - dataSource = DataSource.MEMORY + dataSource = DataSource.DISK ) } else { SourceResult( source = resources.openRawResource(resId).source().buffer(), mimeType = mimeType, - dataSource = DataSource.MEMORY + dataSource = DataSource.DISK ) } }