Skip to content
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

NetWorkDispatcher leak #36

Closed
lozn00 opened this issue May 25, 2017 · 5 comments
Closed

NetWorkDispatcher leak #36

lozn00 opened this issue May 25, 2017 · 5 comments

Comments

@lozn00
Copy link

lozn00 commented May 25, 2017

After the activity was destroyed, I called the cannel method, but listener was still leaking
http://blog.csdn.net/wangshihui512/article/details/51249048
I'm in the same position as this address, but the solution isn't good because it doesn't automatically cache offline.

@lozn00
Copy link
Author

lozn00 commented May 25, 2017

unofficial mirror (with some minor bugfix) for volley. compile 'com.android.volley:volley:1.0.0' leak please fix bug

@lozn00
Copy link
Author

lozn00 commented May 25, 2017

https://github.com/blood1093/Volley_mcxiaoke his does not have bug, but it cannot be offline cached this not bug, bug this not auto cache

@lozn00
Copy link
Author

lozn00 commented May 25, 2017

public void cancelAll(RequestFilter filter) {
    synchronized (mCurrentRequests) {
        for (Request<?> request : mCurrentRequests) {
            if (filter.apply(request)) {
                if (request instanceof StringRequest) {

                    ((StringRequest) request).clearListener();
                }
                request.cancel();
            }
        }
    }
}

@xesam
Copy link

xesam commented May 25, 2017

想在 com.android.volley:volley:1.0.0 中修正 bug 是没戏了,你只能自己手动修改然后打包了

@jpd236
Copy link
Collaborator

jpd236 commented May 31, 2017

See #15

@jpd236 jpd236 closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants