mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Callback after registration
This commit is contained in:
@@ -378,36 +378,6 @@ class EntryEditActivity : DatabaseLockActivity(),
|
||||
} ?: run {
|
||||
updateEntry(entrySave.oldEntry, entrySave.newEntry)
|
||||
}
|
||||
|
||||
// Don't wait for saving if it's to provide autofill
|
||||
mDatabase?.let { database ->
|
||||
EntrySelectionHelper.doSpecialAction(
|
||||
intent = intent,
|
||||
defaultAction = {},
|
||||
searchAction = {},
|
||||
selectionAction = { intentSender, typeMode, searchInfo ->
|
||||
when(typeMode) {
|
||||
TypeMode.DEFAULT -> {}
|
||||
TypeMode.MAGIKEYBOARD ->
|
||||
entryValidatedForKeyboardSelection(database, entrySave.newEntry)
|
||||
TypeMode.PASSKEY ->
|
||||
entryValidatedForPasskey(database, entrySave.newEntry)
|
||||
TypeMode.AUTOFILL ->
|
||||
entryValidatedForAutofill(database, entrySave.newEntry)
|
||||
}
|
||||
},
|
||||
registrationAction = { intentSender, typeMode, registerInfo ->
|
||||
when(typeMode) {
|
||||
TypeMode.DEFAULT -> {}
|
||||
TypeMode.MAGIKEYBOARD -> {}
|
||||
TypeMode.PASSKEY ->
|
||||
entryValidatedForPasskey(database, entrySave.newEntry)
|
||||
TypeMode.AUTOFILL ->
|
||||
entryValidatedForAutofill(database, entrySave.newEntry)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
lifecycleScope.launch {
|
||||
|
||||
Reference in New Issue
Block a user