mirror of
https://github.com/T8RIN/ImageToolbox.git
synced 2025-05-18 22:16:29 +08:00
Fix issue when certain SVGs cannot be viewed by #1697
This commit is contained in:
@ -128,6 +128,13 @@ dependencies {
|
||||
implementation(libs.bouncycastle.provider)
|
||||
}
|
||||
|
||||
allprojects {
|
||||
configurations.all {
|
||||
resolutionStrategy.dependencySubstitution {
|
||||
substitute(module("com.caverock:androidsvg-aar:1.4")).using(module("com.github.deckerst:androidsvg:cc9d59a88f"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
android.productFlavors.forEach { flavor ->
|
||||
|
@ -190,9 +190,6 @@ fun ImagePager(
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.background(
|
||||
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
||||
)
|
||||
.withLayoutCorners { corners ->
|
||||
graphicsLayer {
|
||||
scaleX = scale
|
||||
@ -201,6 +198,9 @@ fun ImagePager(
|
||||
clip = true
|
||||
}
|
||||
}
|
||||
.background(
|
||||
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
||||
)
|
||||
) {
|
||||
val moreThanOneUri = (uris?.size ?: 0) > 1
|
||||
|
||||
|
@ -185,9 +185,6 @@ internal fun MediaImagePager(
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.background(
|
||||
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
||||
)
|
||||
.withLayoutCorners { corners ->
|
||||
graphicsLayer {
|
||||
scaleX = scale
|
||||
@ -196,6 +193,9 @@ internal fun MediaImagePager(
|
||||
clip = true
|
||||
}
|
||||
}
|
||||
.background(
|
||||
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
||||
)
|
||||
) {
|
||||
val moreThanOneUri = media.size > 1
|
||||
val currentMedia = media.getOrNull(pagerState.currentPage)
|
||||
|
Reference in New Issue
Block a user