Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Apr 30, 2024
1 parent 75d01bc commit 43a80a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ internal class Resolver(
ResolveResult(
placeholder = it?.asDrawable(resources)?.asPainter(),
delegate = resolved.delegate,
crossfadeDuration = Duration.ZERO, // resolved.crossfadeDuration
// resolved.crossfadeDuration
crossfadeDuration = Duration.ZERO,
)
},
)
Expand All @@ -213,7 +214,8 @@ internal class Resolver(
resolved =
ResolveResult(
placeholder = resolved.placeholder,
crossfadeDuration = Duration.ZERO, // result.crossfadeDuration(),
// result.crossfadeDuration(),
crossfadeDuration = Duration.ZERO,
delegate =
if (result is SuccessResult && imageSource != null) {
ZoomableImageSource.SubSamplingDelegate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal suspend fun SubSamplingImageSource.canBeSubSampled(): Boolean {
context(Resolver)
private fun ResourceImageSource.isVectorDrawable(): Boolean =
TypedValue().apply {
request.context.resources.getValue(id, this, /* resolveRefs = */ true)
request.context.resources.getValue(id, this, true)
}.string.endsWith(".xml")

context(Resolver)
Expand Down

0 comments on commit 43a80a0

Please sign in to comment.