-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Using null fallback also call onException listener #456
Comments
I'm not totally sure what the expected behavior here is. I didn't change that in Glide 3.6 to keep the behavior the same. I think it's ok. If fallbacks actually accepted full requests, you'd probably expect to be notified that your full load failed if you added a listener, even if one of the fallbacks eventually succeeds? |
If I understand correctly the idea of .fallback(int or Drawable), it's for handling null models? Like in this table #268 . |
I think Sam's point is a weird case, I think the question is: Is listener for each target or for each load? and Do we consider fallback a separate load? |
This is hard one but I think I want to stick with the behavior we have. You can infer from the null model that onException was called because of a null model. I don't see a hugely compelling reason to change the behavior, particularly since users may currently be relying on it. |
Hi Sam,
again, I am not sure if it's a bug. When I use this:
then fallback working well, but onException is also called. Is that right?
The text was updated successfully, but these errors were encountered: