Fixes single click login screen

This commit is contained in:
Vitor Pamplona
2023-11-19 17:45:00 -05:00
parent b1cfa2219d
commit d4ed6661dd
2 changed files with 6 additions and 3 deletions
@@ -83,6 +83,7 @@ import com.vitorpamplona.quartz.signers.ExternalSignerLauncher
import com.vitorpamplona.quartz.signers.SignerType
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import java.util.UUID
@OptIn(ExperimentalComposeUiApi::class)
@Composable
@@ -108,6 +109,7 @@ fun LoginPage(
if (loginWithExternalSigner) {
val externalSignerLauncher = remember { ExternalSignerLauncher("") }
val id = remember { UUID.randomUUID().toString() }
val launcher = rememberLauncherForActivityResult(
contract = ActivityResultContracts.StartActivityForResult(),
@@ -159,8 +161,9 @@ fun LoginPage(
"",
SignerType.GET_PUBLIC_KEY,
"",
""
id
) { pubkey ->
println("AAAA- COME BACK")
key.value = TextFieldValue(pubkey)
if (!acceptedTerms.value) {
termsAcceptanceIsRequired =