-
Notifications
You must be signed in to change notification settings - Fork 9
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
红包页面getRootInActiveWindow为null #1
Comments
xml的配置如下: 捕获不到button,点击home键,再次进入微信就能捕获到?这是为何? |
我也发现这个问题了,Android 6.0之前版本的手机没问题。在Android 7.0 和 Android 8.1上测试时发现,没当窗口发生改变时getRootInActiveWindow就变成了null,百度+谷歌了半天也没查到解决办法。 |
@sinawangnan7 I have the same problem.In the Activity of "com.tencent.mm.plugin.luckymoney.ui.LuckyMoneyReceiveUI" ,the method of "getRootInActiveWindow()" return null. |
一直试都是获取为空,使用getWindows()方法也是为空,真是无解。 |
如果大家还感兴趣,最近用kotlin尝试写了下只支持微信7.0版本的红包插件。后续会继续优化。 |
@YummyLau It's OK. I have found an other way to solve it, which you can see the application in NB-Dragon/RedPacketPolice. There is no source code there. |
@NB-Dragon thx!Did it adpter to wechat7.0 ? |
@YummyLau Not yet, but it's easy to adapt it if i want. |
找不到啦 |
code? |
I won't give you the code, but i will offer you a tip "dispatchGesture". |
@jp |
请教下,如题,有什么解决的方案吗
The text was updated successfully, but these errors were encountered: