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

弹窗会闪现一下残影再消失 #61

Open
zslpenk opened this issue Apr 25, 2024 · 4 comments
Open

弹窗会闪现一下残影再消失 #61

zslpenk opened this issue Apr 25, 2024 · 4 comments

Comments

@zslpenk
Copy link

zslpenk commented Apr 25, 2024

弹窗显示,页面退到后台,onpause调用dialog.dismiss(),应用从后台恢复到前台,弹窗会有残影闪现再消失。
最新版本也有这个问题。

请问作者有解决方案嘛

@goweii
Copy link
Owner

goweii commented Apr 25, 2024

关掉隐藏动画试试 dismiss(false)

@zslpenk
Copy link
Author

zslpenk commented Apr 26, 2024

image
使用这样的是方式还是会出现残影的

@goweii
Copy link
Owner

goweii commented Apr 26, 2024

看起来是onpause之后紧跟着onstop了,导致绘制暂停,需要onresume之后才重新绘制。实际上onpause时layer已经从视图树移除了,只是没来得及触发绘制。

@zslpenk
Copy link
Author

zslpenk commented Apr 27, 2024

有好的解决方案嘛

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