mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +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,
|
||||
(dialog, id) -> {
|
||||
try {
|
||||
FileUtils.deleteDirectory(PasswordRepository.getWorkTree());
|
||||
FileUtils.cleanDirectory(PasswordRepository.getWorkTree());
|
||||
} catch (Exception e) {
|
||||
//TODO Handle the diffent cases of exceptions
|
||||
}
|
||||
|
Reference in New Issue
Block a user