summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-05-03 12:20:52 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-05-17 18:52:23 +0200
commit4e5c64913d41397df46fef5aed23c0bb9b8bb5bd (patch)
tree38294a389de7ad1c1c4d1f1ab0ef4f8a75f4e2db /app/src
parent62b4d78e93200ce46fa82dc00e0aa7a3083ff2f0 (diff)
clean the content of the directory on delete, rather than deleting the directory itself
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/UserPreference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
index ba322c28..2280019d 100644
--- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
+++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
@@ -82,7 +82,7 @@ public class UserPreference extends AppCompatActivity {
setPositiveButton(R.string.dialog_delete,
(dialog, id) -> {
try {
- FileUtils.deleteDirectory(PasswordRepository.getWorkTree());
+ FileUtils.cleanDirectory(PasswordRepository.getWorkTree());
} catch (Exception e) {
//TODO Handle the diffent cases of exceptions
}