mirror of
https://github.com/T8RIN/ImageToolbox.git
synced 2025-08-06 15:49:35 +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)
|
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 {
|
afterEvaluate {
|
||||||
android.productFlavors.forEach { flavor ->
|
android.productFlavors.forEach { flavor ->
|
||||||
|
@ -190,9 +190,6 @@ fun ImagePager(
|
|||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.background(
|
|
||||||
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
|
||||||
)
|
|
||||||
.withLayoutCorners { corners ->
|
.withLayoutCorners { corners ->
|
||||||
graphicsLayer {
|
graphicsLayer {
|
||||||
scaleX = scale
|
scaleX = scale
|
||||||
@ -201,6 +198,9 @@ fun ImagePager(
|
|||||||
clip = true
|
clip = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.background(
|
||||||
|
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
val moreThanOneUri = (uris?.size ?: 0) > 1
|
val moreThanOneUri = (uris?.size ?: 0) > 1
|
||||||
|
|
||||||
|
@ -185,9 +185,6 @@ internal fun MediaImagePager(
|
|||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.background(
|
|
||||||
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
|
||||||
)
|
|
||||||
.withLayoutCorners { corners ->
|
.withLayoutCorners { corners ->
|
||||||
graphicsLayer {
|
graphicsLayer {
|
||||||
scaleX = scale
|
scaleX = scale
|
||||||
@ -196,6 +193,9 @@ internal fun MediaImagePager(
|
|||||||
clip = true
|
clip = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.background(
|
||||||
|
MaterialTheme.colorScheme.scrim.copy(alpha = 0.6f * progress)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
val moreThanOneUri = media.size > 1
|
val moreThanOneUri = media.size > 1
|
||||||
val currentMedia = media.getOrNull(pagerState.currentPage)
|
val currentMedia = media.getOrNull(pagerState.currentPage)
|
||||||
|
Reference in New Issue
Block a user