Re-Add Animated Image Decoders to Coil

This commit is contained in:
Jobobby04
2024-03-17 23:17:27 -04:00
parent 2f54f00bf7
commit 5d1b1408eb
2 changed files with 10 additions and 0 deletions
@@ -91,6 +91,9 @@ object ImageUtil {
// Coil supports animated WebP on Android 9.0+
// https://coil-kt.github.io/coil/getting_started/#supported-image-formats
Format.Webp -> type.isAnimated && Build.VERSION.SDK_INT >= Build.VERSION_CODES.P
// Coil supports animated Heif on Android 11+
// https://coil-kt.github.io/coil/getting_started/#supported-image-formats
Format.Heif -> type.isAnimated && Build.VERSION.SDK_INT >= Build.VERSION_CODES.R
else -> false
}
} catch (e: Exception) {