Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit c5a0260

Browse files
author
seldon1000
committed
better customFields serialization when saving new credentials with autofill
1 parent d3a86e2 commit c5a0260

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/eu/seldon1000/nextpass/services/NextPassAutofillService.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import kotlinx.coroutines.CoroutineScope
3737
import kotlinx.coroutines.Dispatchers
3838
import kotlinx.coroutines.async
3939
import kotlinx.coroutines.launch
40-
import kotlinx.serialization.decodeFromString
40+
import kotlinx.serialization.encodeToString
4141
import java.math.BigInteger
4242
import java.security.MessageDigest
4343

@@ -214,14 +214,14 @@ class NextPassAutofillService : AutofillService() {
214214
)
215215

216216
if (viewWebDomain.isEmpty()) {
217-
params["customFields"] = NextcloudApi.json.decodeFromString(
218-
string = listOf(
217+
params["customFields"] = NextcloudApi.json.encodeToString(
218+
value = listOf(
219219
mapOf(
220220
"label" to "Android app",
221221
"type" to "text",
222222
"value" to idPackage
223223
)
224-
).toString()
224+
)
225225
)
226226
}
227227

0 commit comments

Comments
 (0)