mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Better delete implementation
This commit is contained in:
@@ -74,6 +74,8 @@ class DeleteEntryRunnable constructor(
|
||||
result.data = Bundle().apply {
|
||||
putInt(NODE_POSITION_FOR_ACTION_NATURAL_ORDER_KEY, position )
|
||||
}
|
||||
} ?: run {
|
||||
result.data?.remove(NODE_POSITION_FOR_ACTION_NATURAL_ORDER_KEY)
|
||||
}
|
||||
|
||||
// Return a copy of unchanged entry as old param
|
||||
|
||||
@@ -73,6 +73,8 @@ class DeleteGroupRunnable(context: FragmentActivity,
|
||||
result.data = Bundle().apply {
|
||||
putInt(NODE_POSITION_FOR_ACTION_NATURAL_ORDER_KEY, position )
|
||||
}
|
||||
} ?: run {
|
||||
result.data?.remove(NODE_POSITION_FOR_ACTION_NATURAL_ORDER_KEY)
|
||||
}
|
||||
|
||||
// Return a copy of unchanged group as old param
|
||||
|
||||
Reference in New Issue
Block a user