Fix entry not visually deleted in search #559

This commit is contained in:
J-Jamet
2020-05-16 19:04:10 +02:00
parent 940a1dfc78
commit 45bcbb3a3d

View File

@@ -223,6 +223,8 @@ class GroupActivity : LockingActivity(),
newNodes = getListNodesFromBundle(database, newNodesBundle)
}
refreshSearchGroup()
when (actionTask) {
ACTION_DATABASE_UPDATE_GROUP_TASK -> {
if (result.isSuccess) {
@@ -346,6 +348,11 @@ class GroupActivity : LockingActivity(),
super.onSaveInstanceState(outState)
}
private fun refreshSearchGroup() {
if (mCurrentGroupIsASearch)
openSearchGroup(retrieveCurrentGroup(intent, null))
}
private fun retrieveCurrentGroup(intent: Intent, savedInstanceState: Bundle?): Group? {
// Force read only if the database is like that
@@ -616,6 +623,7 @@ class GroupActivity : LockingActivity(),
if (database != null
&& database.isRecycleBinEnabled
&& database.recycleBin != mCurrentGroup) {
mProgressDialogThread?.startDatabaseDeleteNodes(
nodes,
!mReadOnly && mAutoSaveEnable