Skip to content

Commit 5c98d2d

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 5cc362e + c17b0d6 commit 5c98d2d

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

avifcoillibrary/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ afterEvaluate {
1515
create<MavenPublication>("mavenJava") {
1616
groupId = "com.github.awxkee"
1717
artifactId = "avif-coder-coil"
18-
version = "2.0.8"
18+
version = "2.0.9"
1919
from(components.findByName("release"))
2020
// artifact("androidSourcesJar")
2121
}
@@ -63,6 +63,6 @@ dependencies {
6363
testImplementation("junit:junit:4.13.2")
6464
androidTestImplementation("androidx.test.ext:junit:1.1.5")
6565
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
66-
api("io.coil-kt.coil3:coil:3.0.2")
67-
api("com.github.awxkee:avif-coder:2.0.8")
66+
api("io.coil-kt.coil3:coil:3.0.3")
67+
api("com.github.awxkee:avif-coder:2.0.9")
6868
}

avifcoillibrary/src/main/java/com/github/awxkee/avifcoil/decoder/animation/AnimatedAvifDecoder.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ public class AnimatedAvifDecoder(
138138
),
139139
preheatFrames = preheatFrames,
140140
firstFrameAsPlaceholder = true
141-
).apply {
142-
setBounds(0, 0, dstWidth, dstHeight)
143-
}
141+
)
144142
} else {
145143
BitmapDrawable(
146144
options.context.resources,

avifcoillibrary/src/main/java/com/github/awxkee/avifcoil/decoder/animation/AnimatedDrawable.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ public class AnimatedDrawable(
230230
}
231231

232232
override fun getIntrinsicHeight(): Int {
233-
return bounds.height()
233+
return frameStore.height
234234
}
235235

236236
override fun getIntrinsicWidth(): Int {
237-
return bounds.width()
237+
return frameStore.width
238238
}
239239

240240
override fun setColorFilter(colorFilter: ColorFilter?) {

0 commit comments

Comments
 (0)