Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off network cache, clear app file will not be able to load images #2381

Closed
Liangwenb opened this issue Jul 19, 2024 · 1 comment
Closed

Comments

@Liangwenb
Copy link

Describe the bug

Turn off network cache, clear app file will not be able to load images

To Reproduce

class MainApplication : Application(), ImageLoaderFactory {

    override fun onCreate() {
        super.onCreate()

    }

    override fun newImageLoader(): ImageLoader {
        return ImageLoader.Builder(this)
            .crossfade(true).allowRgb565(true)
            .diskCachePolicy(CachePolicy.ENABLED)
            .networkCachePolicy(CachePolicy.DISABLED)
            .memoryCachePolicy(CachePolicy.ENABLED)
            .build()
    }
}

Then use the android studio plugin "adb Idea" Adb Clear Data

Logs/Screenshots

none

Version

    compileSdk 34

    api("io.coil-kt:coil-compose:2.7.0")
    api("io.coil-kt:coil:2.7.0")

Android device : xiaomi 22031116BG

@colinrtwhite
Copy link
Member

There isn't enough information here to reproduce the issue, but it sounds like expected behaviour. If you disable the network cache it isn't possible for the image loader to fetch images from the internet.

@colinrtwhite colinrtwhite closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants