mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 23:04:30 +02:00
Fixes Go Button on new user screen
This commit is contained in:
@@ -161,9 +161,7 @@ fun SignUpPage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (acceptedTerms.value && displayName.value.text.isNotBlank()) {
|
if (acceptedTerms.value && displayName.value.text.isNotBlank()) {
|
||||||
accountStateViewModel.login(displayName.value.text, useProxy.value, proxyPort.value.toInt()) {
|
accountStateViewModel.newKey(useProxy.value, proxyPort.value.toInt(), displayName.value.text)
|
||||||
errorMessage = context.getString(R.string.invalid_key)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@@ -202,8 +200,7 @@ fun SignUpPage(
|
|||||||
ClickableText(
|
ClickableText(
|
||||||
text = annotatedTermsString,
|
text = annotatedTermsString,
|
||||||
) { spanOffset ->
|
) { spanOffset ->
|
||||||
annotatedTermsString.getStringAnnotations(spanOffset, spanOffset).firstOrNull()?.also {
|
annotatedTermsString.getStringAnnotations(spanOffset, spanOffset).firstOrNull()?.also { span ->
|
||||||
span ->
|
|
||||||
if (span.tag == "openTerms") {
|
if (span.tag == "openTerms") {
|
||||||
runCatching {
|
runCatching {
|
||||||
uri.openUri("https://github.com/vitorpamplona/amethyst/blob/main/PRIVACY.md")
|
uri.openUri("https://github.com/vitorpamplona/amethyst/blob/main/PRIVACY.md")
|
||||||
@@ -244,12 +241,12 @@ fun SignUpPage(
|
|||||||
},
|
},
|
||||||
onError = {
|
onError = {
|
||||||
scope.launch {
|
scope.launch {
|
||||||
Toast.makeText(
|
Toast
|
||||||
context,
|
.makeText(
|
||||||
it,
|
context,
|
||||||
Toast.LENGTH_LONG,
|
it,
|
||||||
)
|
Toast.LENGTH_LONG,
|
||||||
.show()
|
).show()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
proxyPort,
|
proxyPort,
|
||||||
|
Reference in New Issue
Block a user