From 4e5c64913d41397df46fef5aed23c0bb9b8bb5bd Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Sun, 3 May 2015 12:20:52 +0200 Subject: clean the content of the directory on delete, rather than deleting the directory itself --- app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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 } -- cgit v1.2.3