Shimmer-android
Shimmer-android copied to clipboard
Memory Leak
Does the Runnable inside Shimmer.java properly stop? It seems to be causing a memory leak for me.
Here is what the leak looks like : https://gist.github.com/lawloretienne/66ed381b89d543bff6ede5016a0d0ce0
Same problem here!
Shimmer shimmer = new Shimmer();
...
shimmer.start(tvShimmerText);
...
Cancel shimmer in onDestroy()
might help you.
@Override
protected void onDestroy() {
super.onDestroy();
if (shimmer!=null) {
shimmer.cancel();
shimmer = null;
tvShimmerText = null;
}
}