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

关于内存泄漏的问题 #64

Open
mapengtang opened this issue Jan 16, 2017 · 4 comments
Open

关于内存泄漏的问题 #64

mapengtang opened this issue Jan 16, 2017 · 4 comments

Comments

@mapengtang
Copy link

退出Actviity则会内存泄漏,怎么释放Activity对象

@LatoAndroid
Copy link

你好,请问解决了吗,卡在这个问题很久了,求帮助!

@LatoAndroid
Copy link

已解决

@guoyoujin
Copy link

guoyoujin commented Aug 25, 2017

@LatoAndroidw 你是怎么解决内存泄露问题的?
在activity销毁的时候释放?

@ya0xu
Copy link

ya0xu commented Dec 12, 2018

我使用过程中,遇到的内存泄漏是由于框架代码
PtrFrameLayout#refreshComplete()方法中的
mLoadingStartTime没有赋值
导致后面的postDelay中的delay巨大,使得调用页面没有被回收。
我是直接在此方法中打了个补丁(应该是可以从代码层面来修改的),
if(mLoadingStartTime == 0){
delay = 0;
} else {
delay = (int) (mLoadingMinTime - (System.currentTimeMillis() - mLoadingStartTime));
int mLoadingMaxTime = 5000;
if(delay < 0 || delay > mLoadingMaxTime){
delay = mLoadingMaxTime;
}
}

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

4 participants