Delete passwords recursively (#639)

Delete passwords recursively

* Fixes #638 
* Update CHANGELOG

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-02-22 22:52:35 +05:30 committed by GitHub
parent 5c3ee3fdbf
commit 1a38ecbe75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
## Unreleased ## Unreleased
### Fixed
- Can't delete folders containing a password
## [1.5.0] - 2020-02-21 ## [1.5.0] - 2020-02-21
### Added ### Added

View file

@ -493,7 +493,7 @@ class PasswordStore : AppCompatActivity() {
MaterialAlertDialogBuilder(this) MaterialAlertDialogBuilder(this)
.setMessage(resources.getString(R.string.delete_dialog_text, item.longName)) .setMessage(resources.getString(R.string.delete_dialog_text, item.longName))
.setPositiveButton(resources.getString(R.string.dialog_yes)) { _, _ -> .setPositiveButton(resources.getString(R.string.dialog_yes)) { _, _ ->
item.file.delete() item.file.deleteRecursively()
adapter.remove(position) adapter.remove(position)
it.remove() it.remove()
adapter.updateSelectedItems(position, selectedItems) adapter.updateSelectedItems(position, selectedItems)