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

调用floatview时出现的问题 #1

Open
Fengxiangmei opened this issue Aug 1, 2016 · 0 comments
Open

调用floatview时出现的问题 #1

Fengxiangmei opened this issue Aug 1, 2016 · 0 comments

Comments

@Fengxiangmei
Copy link

Fengxiangmei commented Aug 1, 2016

将floatview 运用在来电监听上使用CallShowReceiver.java , 第一次来电显示正常,第二次,显示3个悬浮窗,第3次,会显示5个悬浮窗,以此类推1,3,5,7,9........... 建议将CallShowReceiver.java中设为 private static FloatView floatView;
在部分手机上,如小米,第二次拨打会报错误 :IllegalStateException: view has already been added to the window manager 建议在报错地点 floatView.addToWindow()修改成 if (floatView.getParent() == null)
floatView.addToWindow();

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