Skip to content

Fix memory leak in ToastUtils. Add a method to set the text size. #456

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

Merged
merged 1 commit into from
Apr 17, 2018
Merged

Fix memory leak in ToastUtils. Add a method to set the text size. #456

merged 1 commit into from
Apr 17, 2018

Conversation

LeoYu007
Copy link

1、修复构造Toast时如果传入的是Activity Context可能造成的内存泄漏,静态Toast改成软引用,只用来取消Toast的连续显示。
2、增加一个设置字体大小的方法,项目中需要用的时候发现没有,只能通过自定义实现。

@Blankj
Copy link
Owner

Blankj commented Apr 17, 2018

thx for ur pr

@Blankj Blankj merged commit f652fdf into Blankj:master Apr 17, 2018
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

Successfully merging this pull request may close these issues.

2 participants