mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Small error
This commit is contained in:
@@ -105,8 +105,6 @@ class PasskeyProviderService : CredentialProviderService() {
|
|||||||
try {
|
try {
|
||||||
processGetCredentialsRequest(request)?.let { response ->
|
processGetCredentialsRequest(request)?.let { response ->
|
||||||
callback.onResult(response)
|
callback.onResult(response)
|
||||||
} ?: run {
|
|
||||||
callback.onError(GetCredentialUnknownException())
|
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(javaClass.simpleName, "onBeginGetCredentialRequest error", e)
|
Log.e(javaClass.simpleName, "onBeginGetCredentialRequest error", e)
|
||||||
@@ -116,7 +114,6 @@ class PasskeyProviderService : CredentialProviderService() {
|
|||||||
|
|
||||||
private fun processGetCredentialsRequest(request: BeginGetCredentialRequest): BeginGetCredentialResponse? {
|
private fun processGetCredentialsRequest(request: BeginGetCredentialRequest): BeginGetCredentialResponse? {
|
||||||
val credentialEntries: MutableList<CredentialEntry> = mutableListOf()
|
val credentialEntries: MutableList<CredentialEntry> = mutableListOf()
|
||||||
|
|
||||||
for (option in request.beginGetCredentialOptions) {
|
for (option in request.beginGetCredentialOptions) {
|
||||||
when (option) {
|
when (option) {
|
||||||
is BeginGetPublicKeyCredentialOption -> {
|
is BeginGetPublicKeyCredentialOption -> {
|
||||||
@@ -127,8 +124,7 @@ class PasskeyProviderService : CredentialProviderService() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.w(javaClass.simpleName, "unknown beginGetCredentialOption")
|
throw IOException("unknown type of beginGetCredentialOption")
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun populatePasskeyData(
|
private fun populatePasskeyData(
|
||||||
@@ -247,9 +243,11 @@ class PasskeyProviderService : CredentialProviderService() {
|
|||||||
// Request is passkey type
|
// Request is passkey type
|
||||||
handleCreatePasskeyQuery(request, callback)
|
handleCreatePasskeyQuery(request, callback)
|
||||||
}
|
}
|
||||||
|
else -> {
|
||||||
|
// request type not supported
|
||||||
|
throw IOException("unknown type of BeginCreateCredentialRequest")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// request type not supported
|
|
||||||
throw IOException("unknown type of BeginCreateCredentialRequest")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun MutableList<CreateEntry>.addPendingIntentCreationNewEntry(
|
private fun MutableList<CreateEntry>.addPendingIntentCreationNewEntry(
|
||||||
|
|||||||
Reference in New Issue
Block a user