Coil: Function crossfade(true) didnt work.

Created on 18 Sep 2019  路  7Comments  路  Source: coil-kt/coil

So this is my first time trying this library. Wanna see how it's better than Glide and others and suddenly bumped into this, which I believe a bug. I'm using crossfade() for the fading up animation image loader. It seems that the image only load once. If I go Back screen, and re enter the activity, the image is not loaded anymore. Here is how I specify my code;

imageView.load("www.google.com/image"){
crossfade(true)
}

Note that on the arguement TRUE in the bracket, in my IDE it wrote as enable : true .

To Reproduce
Enter the Activity, once inside, go Back. Then re enter again.

Expected behavior
Some image loaded, some not.

Logs/Screenshots
image

Library version
0.7.0

bug needs info

All 7 comments

Do you have a sample application/snippet that can reproduce this? Thanks

I send screenshot of this dummy app first. for your first thought. FYI, Internet permission given. Java8 bytecode enabled.

DeepinScreenshot_dde-desktop_20190922002719

Can you enable logging with CoilLogger.setEnabled(true) and post the logs?

A repo set-up for testing. Try take a look.
https://github.com/Starscream9559/DuumyApp4CodeTesting.git

@Starscream9559 Thanks for the sample project, however I'm not able to reproduce the issue with it. If I navigate forward to an Activity and back, the image still shows correctly.

Going to close this, but feel free to reopen if I've missed something in the sample project.

It seems like crossfade does not happen if it has loaded the image from memory.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZacSweers picture ZacSweers  路  4Comments

billyjoker picture billyjoker  路  5Comments

cioccarellia picture cioccarellia  路  3Comments

theScrabi picture theScrabi  路  5Comments

wooldridgetm picture wooldridgetm  路  3Comments