fix: Callback after registration

This commit is contained in:
J-Jamet
2025-10-13 14:57:13 +02:00
parent 4fe6b2e115
commit 96c3af097a
2 changed files with 1 additions and 36 deletions

View File

@@ -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 {

View File

@@ -19,7 +19,6 @@ import com.kunzisoft.keepass.credentialprovider.viewmodel.HardwareKeyLauncherVie
import com.kunzisoft.keepass.credentialprovider.viewmodel.HardwareKeyLauncherViewModel.UIState
import com.kunzisoft.keepass.database.ContextualDatabase
import com.kunzisoft.keepass.hardware.HardwareKey
import com.kunzisoft.keepass.services.DatabaseTaskNotificationService.Companion.ACTION_DATABASE_LOAD_TASK
import com.kunzisoft.keepass.tasks.ActionRunnable
import com.kunzisoft.keepass.utils.AppUtil.openExternalApp
import kotlinx.coroutines.launch
@@ -84,12 +83,8 @@ class HardwareKeyActivity: DatabaseModeActivity(){
result: ActionRunnable.Result
) {
super.onDatabaseActionFinished(database, actionTask, result)
when (actionTask) {
ACTION_DATABASE_LOAD_TASK -> {
finish()
}
}
}
private fun showHardwareKeyDriverNeeded(
context: Context,