fix: Reload when entryId not null

This commit is contained in:
J-Jamet committed 2026-10-16 18:00:18 +02:00
1 parent 1fb37b177c
commit ec66bc020d
1 file changed
+5 -3
@@ -131,9 +131,11 @@ class EntryActivity : DatabaseLockActivity() {
}
}
private var mEntryActivityResultLauncher = EntryEditActivity.registerForEntryResult(this) {
// Reload the current id from database
mEntryViewModel.loadDatabase(mDatabase)
private var mEntryActivityResultLauncher = EntryEditActivity.registerForEntryResult(this) { entryId ->
entryId?.let {
// Reload the current id from database
mEntryViewModel.loadDatabase(mDatabase)
}
}
override fun manageDatabaseInfo(): Boolean = true