-
Notifications
You must be signed in to change notification settings - Fork 478
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
关于使用SYDialog的内存泄漏问题 #5
Comments
用的是leakcanary吗 看一下是报的是哪里 可以截张图 leakcanary有时候会先给提醒 但是最后本身不是内存泄漏 |
LibraryLeak(className=com.ninetripods.sydialoglib.SYDialog, leakTrace= |
这个应该是系统级fragmentManger内部的泄露 |
new SYDialog.Builder(context)
.setDialogView(R.layout.dialog_garbage_details)
//设置动画
.setAnimStyle(R.style.AnimUp)
//设置屏幕宽度比例
.setScreenWidthP(1.0f)
//设置屏幕高度比例
.setScreenHeightP(1.0f)
//设置背景透明度
.setWindowBackgroundP(0.5f)
//设置是否屏蔽物理返回键 true不屏蔽 false屏蔽
.setCancelable(true)
//设置dialog外点击是否可以让dialog消失
.setCancelableOutSide(true)
.setBuildChildListener((dialog, view, layoutRes) -> initView(dialog, view))
.setOnDismissListener(dialog -> GarbageDetailsDialog.this.context = null)
.show();
写了 GarbageDetailsDialog.this.context = null 还是有内存泄漏
The text was updated successfully, but these errors were encountered: