clean the content of the directory on delete, rather than deleting the directory itself

This commit is contained in:
Mohamed Zenadi 2015-05-03 12:20:52 +02:00
parent 62b4d78e93
commit 4e5c64913d
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -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
}