Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Memory Leak #30

Open
lawloretienne opened this issue Oct 6, 2016 · 3 comments
Open

Memory Leak #30

lawloretienne opened this issue Oct 6, 2016 · 3 comments

Comments

@lawloretienne
Copy link

Does the Runnable inside Shimmer.java properly stop? It seems to be causing a memory leak for me.

@lawloretienne
Copy link
Author

Here is what the leak looks like :
https://gist.github.com/lawloretienne/66ed381b89d543bff6ede5016a0d0ce0

@RockyLin
Copy link

Same problem here!

@nieldeokar
Copy link

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;
        }
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants