aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-10-30 22:36:19 +0100
committerzeapo <mohamed@zenadi.com>2017-10-30 22:36:19 +0100
commitd13438b67a6f51766d22134ba5e976ecb284e492 (patch)
tree0d81c1b365da5f7cd27f25c4abd60ec1fd5ea368
parentf383ebbb8f61993edf59cec873db011209736062 (diff)
parent55c46eb644a53dce5531888e6171730ee18bd18f (diff)
Merge branch 'master' of https://github.com/zeapo/Android-Password-Store
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
index 755b0327..16bf4547 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
@@ -212,6 +212,7 @@ public class AutofillService extends AccessibilityService {
// Match with the app if a webview was not found or one was found but
// there's no title or url to go by
if (webViewTitle == null || (webViewTitle.equals("") && webViewURL == null)) {
+ if (info.getPackageName() == null) return;
packageName = info.getPackageName().toString();
// get the app name and find a corresponding password
@@ -248,7 +249,7 @@ public class AutofillService extends AccessibilityService {
}
private String searchWebView(AccessibilityNodeInfo source, int depth) {
- if (source == null) {
+ if (source == null || depth == 0) {
return null;
}
for (int i = 0; i < source.getChildCount(); i++) {