-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CallBack.onSuccess() never called when image loaded from cache #1140
Comments
Show code. |
Sorry, the code is so simple that I've not thought of posting it String url = "http://www.example.com/foo.png";
ImageView imgView = ....;
Picasso.with(getActivity()).load(url).placeholder(R.drawable.court).into(imgView, new Callback() {
@Override
public void onSuccess() {
Log.e(TAG, "onSuccess()");
}
@Override
public void onError() {
Log.e(TAG, "Picasso error!!");
}
});
|
I've figured it out. I'm very sorry the |
Thanks a lot for this! I didn't realise this was called synchronously if cached - messed up my app logic too :D |
Hi, as the title states neither
CallBack.onSuccess()
norCallBack.onError()
are called when Picasso load an image from the cache. So how it is possible to know when the image is loaded?Thanks in advance
The text was updated successfully, but these errors were encountered: