From 816b3d2c4a9a5b440df5fcfd76f8c18e722affb0 Mon Sep 17 00:00:00 2001 From: Felix Bechstein Date: Sun, 16 Jul 2017 10:54:56 +0200 Subject: Ignore .extensions directory (#315) Ignore .extensions directory when traversing password tree. --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 4 ++-- 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)); } -- cgit v1.2.3