-
Notifications
You must be signed in to change notification settings - Fork 422
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
无法同时创建多个系统悬浮窗 #6
Comments
补充,目前我在两次创建悬浮窗之间临时加了一秒延时,可以解决这个问题 |
你好,同时创建多个系统浮窗,确实会存在该问题。
|
我试了下延时也不能显示2个。 |
我的解决方案 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
连续两次创建悬浮窗代码如下
排查了下,发现原因是因为FloatService中的config属性导致
由于config是静态变量,因此当连续两次调用startService的时候,第二次的config中的tag会把第一次config中的tag给覆盖掉,导致第二次的checkTag()方法返回false
另外这是个很棒的库,感谢大佬,最近项目正好需要用到
The text was updated successfully, but these errors were encountered: