mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Registration callback
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user