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

Google Pixel3 XL手机上,我使用Fragment显示弹幕,第二次打开Fragment,加载后弹幕重复 #441

Closed
coolstar1204 opened this issue Dec 31, 2019 · 1 comment

Comments

@coolstar1204
Copy link

Fragment上面放置DanmakuView控件,每次onCreateView初始化弹幕,网络请求弹幕列表,add前还使用remove两个方法清空弹幕了,在onDestroyView中还调用了弹幕的release方法。
但在这个手机上,第二次打开Fragment,还是会出现弹幕列表重复显示。打开三次就会重复三次

@coolstar1204
Copy link
Author

发现原因了。必须在onDestroyView中执行remove两个清除弹幕方法,等下次进入界面,在load加载前执行remove就有问题,其他手机没问题。。。

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

1 participant