clean the content of the directory on delete, rather than deleting the directory itself
This commit is contained in:
parent
62b4d78e93
commit
4e5c64913d
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -82,7 +82,7 @@ public class UserPreference extends AppCompatActivity {
|
||||||
setPositiveButton(R.string.dialog_delete,
|
setPositiveButton(R.string.dialog_delete,
|
||||||
(dialog, id) -> {
|
(dialog, id) -> {
|
||||||
try {
|
try {
|
||||||
FileUtils.deleteDirectory(PasswordRepository.getWorkTree());
|
FileUtils.cleanDirectory(PasswordRepository.getWorkTree());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//TODO Handle the diffent cases of exceptions
|
//TODO Handle the diffent cases of exceptions
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue