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的oncreate方法直接执行showActivityFloat无法显示 #132

Closed
conghuahuadan opened this issue Mar 23, 2021 · 1 comment
Closed

Comments

@conghuahuadan
Copy link

conghuahuadan commented Mar 23, 2021

2.0.1版本,activity的oncreate方法直接执行showActivityFloat无法显示,提示Unable to add window -- token null is not valid; is your activity running?
image

image

@princekin-f
Copy link
Owner

新版的单页面浮窗,和popupwindow是同一类型,需要Activity的windowToken,在onCreate直接创建可能会参数异常

  • 可以将创建放在onResume
  • 或者在onCreate设置个延时
  • 你好像也是小刘鸭粉丝,难得😂

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