add missing recursion stop to depth 10

This commit is contained in:
Mohamed 2017-09-13 09:06:06 +02:00
parent 33821659ae
commit 79869b4fc6

View file

@ -248,7 +248,7 @@ public class AutofillService extends AccessibilityService {
} }
private String searchWebView(AccessibilityNodeInfo source, int depth) { private String searchWebView(AccessibilityNodeInfo source, int depth) {
if (source == null) { if (source == null || depth == 0) {
return null; return null;
} }
for (int i = 0; i < source.getChildCount(); i++) { for (int i = 0; i < source.getChildCount(); i++) {