diff options
author | Felix Bechstein <f@ub0r.de> | 2017-07-16 10:54:56 +0200 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2017-07-16 10:54:56 +0200 |
commit | 816b3d2c4a9a5b440df5fcfd76f8c18e722affb0 (patch) | |
tree | 7001baaf4d047f9a06d327d21bc60571f5fdc584 /app/src/main/java/com | |
parent | 00e0c2541c56b8b31ab7a3287de852935f6b950a (diff) |
Ignore .extensions directory (#315)
Ignore .extensions directory when traversing password tree.
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 4 | ||||
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java | 4 |
2 files changed, 4 insertions, 4 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 405f163b..21627038 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -364,8 +364,8 @@ public class AutofillService extends AccessibilityService { items.add(file); } } else { - // ignore .git directory - if (file.getName().equals(".git")) + // ignore .git and .extensions directory + if (file.getName().equals(".git") || file.getName().equals(".extensions")) continue; items.addAll(searchPasswords(file, appName)); } diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java index b1c99232..ab86d2e1 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java @@ -191,8 +191,8 @@ public class PasswordRepository { if (file.isFile()) { passwordList.add(PasswordItem.newPassword(file.getName(), file, rootDir)); } else { - // ignore .git directory - if (file.getName().equals(".git")) + // ignore .git and .extensions directory + if (file.getName().equals(".git") || file.getName().equals(".extensions")) continue; passwordList.add(PasswordItem.newCategory(file.getName(), file, rootDir)); } |