-
Notifications
You must be signed in to change notification settings - Fork 808
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
内存泄漏问题 #180
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
由于是自定义view的toast,所以在传入context的时候,传入了activity。但是在实际操作中,activity可能已经被销毁,从而导致内存泄漏。
if (!allowQueue){
if (lastToast != null)
lastToast.cancel();//这里的lastToast可能持有一个已经销毁的activity对象。建议优化
lastToast = currentToast;
}
The text was updated successfully, but these errors were encountered: