mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 22:35:17 +00:00
Delete passwords recursively (#639)
Delete passwords recursively * Fixes #638 * Update CHANGELOG Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -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
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user