mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 06:15:48 +00:00
clean the content of the directory on delete, rather than deleting the directory itself
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user