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

切换到其他activity 停止flashview线程呢?? #7

Open
drduan opened this issue Mar 24, 2016 · 2 comments
Open

切换到其他activity 停止flashview线程呢?? #7

drduan opened this issue Mar 24, 2016 · 2 comments

Comments

@drduan
Copy link

drduan commented Mar 24, 2016

flashview

@gcgongchao
Copy link
Owner

你可以尝试在FlashView里面增加一个方法,调用 mHandler.removeCallbacksAndMessages(null); 这里自动轮播是采用Handler+message的方式,所以可以使用该方法移除所有消息进而停止线程。当你切换Activity时,调用这个新增的方法即可

@drduan
Copy link
Author

drduan commented Apr 5, 2016

ok

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

2 participants