openatx / android-uiautomator-server

MIT License
252 stars 145 forks source link

监听toast请求的时候出现的错误 #27

Closed codeskyblue closed 5 years ago

codeskyblue commented 5 years ago

image

codeskyblue commented 5 years ago

https://github.com/openatx/android-uiautomator-server/blob/master/app/src/androidTest/java/com/github/uiautomator/stub/AccessibilityEventListener.java#L62

这里的event.getText().get(0) 数组可能是0,因此可能会报错。

这里还需要增加一个toast监控的开关。(感觉toast可能会影响内容的获取速度)

codeskyblue commented 5 years ago

add setToastListener(boolean enabled)