summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-02-22 22:52:35 +0530
committerGitHub <noreply@github.com>2020-02-22 22:52:35 +0530
commit1a38ecbe75a60943c125b2c90a6e61d1a71bc158 (patch)
treed5b47c070f53e3b0409dd96cb3566bd121a78c2d /app
parent5c3ee3fdbfe1c55d5836295ce47f2bbe39e92612 (diff)
Delete passwords recursively (#639)
Delete passwords recursively * Fixes #638 * Update CHANGELOG Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
index 14d039ce..5cb0316e 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
@@ -493,7 +493,7 @@ class PasswordStore : AppCompatActivity() {
MaterialAlertDialogBuilder(this)
.setMessage(resources.getString(R.string.delete_dialog_text, item.longName))
.setPositiveButton(resources.getString(R.string.dialog_yes)) { _, _ ->
- item.file.delete()
+ item.file.deleteRecursively()
adapter.remove(position)
it.remove()
adapter.updateSelectedItems(position, selectedItems)