Closed IgorB10 closed 8 years ago
I know what you mean,I'll check it later.
I have fixed it, you can help me to test it.
I will test your fix tomorrow. But I fixed it just added in BaseIndicatorController.java
private Weakreference<View> mTarget;
instead of
private View mTarget;
use Weakreference can also handle this. Thanks for your test,If any problem,welcome to tell me:)
Sure :) Thank you!
Hi, @81813780 ! Sorry for a big delay, but I really like your library. I was wondering, what if we will apply my suggestion and we will remove stop animation method and add "Weakreference" to the target what also will resolve leak. I can prepare to merge request if you agree.
Thank you!
@IgorB10 I don't really understand what you mean , but welcome to send PR :) and I'm glad you like this library .
Hello! I noticed that AVLoadingIndicatorView never release a reference to target View. That why activities will never be garbage collected.
I built a simple application with 2 activities. Second(LeakActivity) just have animation First: Second:
and after open and close LeakActvity we can see:
and a root to GC