-
Notifications
You must be signed in to change notification settings - Fork 202
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
Fixes #67 (Gif duplication) #78
Conversation
It looks like it's fixed in Glide master now. Would it be better to just wait for the next release? |
I think the NonAutostarting targets or some simpler variant where the DribblerTarget doesn't call super onResourceReady might still be worthwhile to avoid immediately starting and stopping the gif. |
Immediately starting and stopping each gif adds the overhead of decoding and holding in memory a second bitmap. |
Fair point. Looks like 4.3 was released, do you want to include that update in this PR? |
Done, I saw bumptech/glide#2541 but wasn't able to reproduce. |
Awesome! Installing now, going to run for a day or so tomorrow to see if anything comes up |
It looks like a change in Glide's I haven't quiet tracked down why/how the EDIT: Thinking this may be using the wrong lifecycle callback, not super familiar with Conductor but I think the
|
Interesting. Want to make both of those changes in this PR? |
I did some more investigation and glide ties a The simplest solution is to let glide do it's thing and not try to tie the request manager lifecycle to a controller. I think that's also the best solution here since it doesn't seem like that much is gained by tying the request manager's lifecycle to a controller. That said; I also created a I didn't add that gist to my PR but let me know if you want to go that route instead. |
Yep I'd agree with just removing it and letting Glide handling it. Can revisit your gist in the future if we decide there needs to be a reason to tie to the controller lifecycle. Want to just delete the requestmanager impl as part of this PR? |
Not sure what you mean by request manager impl, I didn't add that gist to the PR, was really just me messing around. |
As in remove my existing custom implementation too and just use vanilla glide |
Ah sorry, took me a bit to wrap my head around what's going on. |
I think all those sub-classes get generated from There's also a generated I feel like there's still a chance I totally missed what you were after so if that's the case sorry again. |
Ah I was specifically talking about removing this function while you're at it since I think it's unused now - https://github.com/hzsweers/CatchUp/blob/8861c3bfb96db6b0a6c80480803ece4caabce50e/app/src/main/kotlin/io/sweers/catchup/GlideConfiguration.kt#L60-L60 It looks like you've done that though, so I think this is good to go! |
Thanks again for this and bearing with me on code review cycles (been traveling a lot with 2 conferences in the last week, and one more this weekend x_x) |
I bet @nickbutcher would be interested in this fix in Plaid too if you're feeling contribute-y :) |
It's not a bullet proof solution but it would work as a stand-in until bumptech/glide#2526 is fixed.