fix: Registration callback

This commit is contained in:
J-Jamet
2025-07-16 16:15:55 +02:00
parent 3fbdf78ba1
commit 91781f36ac
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ object EntrySelectionHelper {
if (activityResultLauncher == null) { if (activityResultLauncher == null) {
intent.flags = intent.flags or Intent.FLAG_ACTIVITY_CLEAR_TASK intent.flags = intent.flags or Intent.FLAG_ACTIVITY_CLEAR_TASK
} }
context?.startActivity(intent) ?: activityResultLauncher?.launch(intent) ?: activityResultLauncher?.launch(intent) ?: context?.startActivity(intent) ?:
throw IllegalStateException("At least Context or ActivityResultLauncher must not be null") throw IllegalStateException("At least Context or ActivityResultLauncher must not be null")
} }

View File

@@ -282,7 +282,7 @@ class PasskeyLauncherActivity : DatabaseModeActivity() {
searchInfo = searchInfo, searchInfo = searchInfo,
onItemsFound = { openedDatabase, _ -> onItemsFound = { openedDatabase, _ ->
Log.w(TAG, "Passkey found for registration, " + Log.w(TAG, "Passkey found for registration, " +
"but launch manual registration for overwrite") "but launch manual registration for a new entry")
GroupActivity.launchForRegistration( GroupActivity.launchForRegistration(
context = this, context = this,
activityResultLauncher = mPasskeyRegistrationActivityResultLauncher, activityResultLauncher = mPasskeyRegistrationActivityResultLauncher,