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

出现内存溢出 #54

Open
jingzhanwu opened this issue Nov 27, 2017 · 0 comments
Open

出现内存溢出 #54

jingzhanwu opened this issue Nov 27, 2017 · 0 comments

Comments

@jingzhanwu
Copy link

配合RecyclerView 使用的
StoreHouseHeader header = new StoreHouseHeader(this);
header.setTextColor(getResources().getColor(R.color.black_a));
header.initWithString("daoshu");
ptrLayout.setHeaderView(header);
ptrLayout.addPtrUIHandler(header);

     //下来监听
    ptrLayout.setPtrHandler(new PtrDefaultHandler() {
        @Override
        public void onRefreshBegin(PtrFrameLayout frame) {
            mAdapter.getData().clear();
            pageNum = 1;
            presenter.getAllPolice("", "", "", pageNum);
        }
    });

我在ondestroy时做了处理
@OverRide
protected void onDestroy() {
super.onDestroy();
if (ptrLayout != null) {
ptrLayout.setPtrHandler(null);
ptrLayout.addPtrUIHandler(null);
ptrLayout = null;
}
}

我使用leakcanary做内存检测时出现了内存溢出的现象,
refrecences Message.next
refrecences Message.callback
refrecences PtrFrameLayout$1.this&0
refrecences PtrFrameLayout.mContext
以上是leakcanary爆出的信息,请问这个是怎么引起的

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

1 participant