Skip to content

Commit

Permalink
Fix incorrect data source returned by ResourceUriFetcher. (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite authored Jun 4, 2021
1 parent 8a36b4f commit 58043d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coil-base/src/main/java/coil/fetch/ResourceUriFetcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Expand Down

0 comments on commit 58043d2

Please # to comment.