Skip to content

Commit

Permalink
Glimpse: Don't add GIF decoder
Browse files Browse the repository at this point in the history
ImageDecoderDecoder supports GIFs since API 28

Change-Id: Ia4edf8fb6e104a070d23174436420fd322142cee
  • Loading branch information
luca020400 committed May 11, 2024
1 parent e914974 commit b3f50f2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/org/lineageos/glimpse/GlimpseApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package org.lineageos.glimpse
import android.app.Application
import coil.ImageLoader
import coil.ImageLoaderFactory
import coil.decode.GifDecoder
import coil.decode.ImageDecoderDecoder
import coil.decode.VideoFrameDecoder
import coil.memory.MemoryCache
Expand All @@ -24,7 +23,6 @@ class GlimpseApplication : Application(), ImageLoaderFactory {

override fun newImageLoader() = ImageLoader.Builder(this).components {
add(ImageDecoderDecoder.Factory())
add(GifDecoder.Factory())
add(VideoFrameDecoder.Factory())
}.memoryCache {
MemoryCache.Builder(this).maxSizePercent(0.25).build()
Expand Down

0 comments on commit b3f50f2

Please sign in to comment.