File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer
core/common/src/main/kotlin/tachiyomi/core/common/util/system Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,9 @@ open class ReaderPageImageView @JvmOverloads constructor(
343
343
.diskCachePolicy(CachePolicy .DISABLED )
344
344
.target(
345
345
onSuccess = { result ->
346
- setImageDrawable(result.asDrawable(context.resources))
347
- (result as ? Animatable )?.start()
346
+ val drawable = result.asDrawable(context.resources)
347
+ setImageDrawable(drawable)
348
+ (drawable as ? Animatable )?.start()
348
349
isVisible = true
349
350
this @ReaderPageImageView.onImageLoaded()
350
351
},
Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ object ImageUtil {
91
91
// Coil supports animated WebP on Android 9.0+
92
92
// https://coil-kt.github.io/coil/getting_started/#supported-image-formats
93
93
Format .Webp -> type.isAnimated && Build .VERSION .SDK_INT >= Build .VERSION_CODES .P
94
+ // Coil supports animated Heif on Android 11+
95
+ // https://coil-kt.github.io/coil/getting_started/#supported-image-formats
96
+ Format .Heif -> type.isAnimated && Build .VERSION .SDK_INT >= Build .VERSION_CODES .R
94
97
else -> false
95
98
}
96
99
} catch (e: Exception ) {
You can’t perform that action at this time.
0 commit comments