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

关于第二次stop()以后再次start()的bug #9

Closed
theJiawen opened this issue Jun 16, 2016 · 2 comments
Closed

关于第二次stop()以后再次start()的bug #9

theJiawen opened this issue Jun 16, 2016 · 2 comments

Comments

@theJiawen
Copy link

假设已经为mCvCountdownView设置了OnCountdownIntervalListener的间隔时间监听器。mCvCountdownView在调用stop()以后,再次调用start()方法启动的话,很可能不会回调onInterval()方法,因为对象的成员变量mPreviouIntervalCallbackTime在stop()以后并没有被置零。解决办法是在stop()以后将之置零;或者增加一个set方法,在再次start之前置零。
另外这个倒计时很好用,谢谢!

@iwgang
Copy link
Owner

iwgang commented Jun 16, 2016

谢谢反馈,近期会有个重构版本发出,届时也会把现有bug都修复

@theJiawen
Copy link
Author

期待

@iwgang iwgang closed this as completed in 0513f3f Jun 19, 2016
iwgang added a commit that referenced this issue Jun 19, 2016
1. 代码重构+优化
2. 增加所有xml配置项的代码设置方法(mCountdownView.dynamicShow(DynamicConfig dynamicConfig))
3. 增加代码动态配置的Demo界面
4. fix #8
4. fix #9
iwgang added a commit that referenced this issue Jun 19, 2016
1. 代码重构+优化
2. 增加所有xml配置项的代码设置方法(mCountdownView.dynamicShow(DynamicConfig dynamicConfig))
3. 增加代码动态配置的Demo界面
4. fix #8
4. fix #9
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