release 2.0.13 Beta3

This commit is contained in:
hyb1996
2017-07-08 23:31:07 +08:00
parent ebacd70fd0
commit 0b39c12572
6 changed files with 33 additions and 7 deletions

View File

@@ -59,10 +59,13 @@ public class AccessibilityService extends android.accessibilityservice.Accessibi
@Override
public void onAccessibilityEvent(final AccessibilityEvent event) {
Log.v(TAG, "onAccessibilityEvent: " + event);
if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
|| event.getEventType() == AccessibilityEvent.TYPE_VIEW_HOVER_ENTER
|| event.getEventType() == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) {
mRootInActiveWindow = super.getRootInActiveWindow();
try {
AccessibilityNodeInfo root = super.getRootInActiveWindow();
Log.v(TAG, "getRootInActiveWindow: " + root);
if (root != null)
mRootInActiveWindow = root;
} catch (Exception ignored) {
}
if (!containsAllEventTypes && !eventTypes.contains(event.getEventType()))
return;