AnyMemo
AnyMemo copied to clipboard
org.liberty.android.fantastischmemo.ui.CardFragment may leak
Many instances of org.liberty.android.fantastischmemo.ui.CardFragment may leak as they are referenced by the static field "dummyAnimation " declared in "org.liberty.android.fantastischmemo.ui.CardFragment"
It may further affect the StudyActivity:
Thank you for reporting the issue. I will take a look.
It doesn't seem dummyAnimation has a reference to the fragment or activity. It is defined like this: private static final Animation dummyAnimation = new AlphaAnimation(1,1);
It does not contains this pointer to the fragment. Did I miss something?
The reference is indirectly created when the StudyActivity instance containing the CardFragment instance is destroyed:
So if I repeat rotating screen when the StudyActivity is on top, there might be multiple instances of CardFragment to be destroyed were indirectly referenced by the static "dummyAnimation "
.hprof file(in .rar format) heap_3.txt
Thank you for reporting the issue. I will take a close look. I can see if there are other way around so I do not need to use dummyAnimation.