add toast message to strings.xml

pull/357/head
greenart7c3 2023-05-08 11:03:17 -03:00
rodzic d31eca1b42
commit 0d051117b2
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -60,6 +60,8 @@ fun ConnectOrbotDialog(onClose: () -> Unit, onPost: () -> Unit, portNumber: Muta
onClose()
})
val toastMessage = stringResource(R.string.invalid_port_number)
PostButton(
onPost = {
try {
@ -68,7 +70,7 @@ fun ConnectOrbotDialog(onClose: () -> Unit, onPost: () -> Unit, portNumber: Muta
scope.launch {
Toast.makeText(
context,
"Invalid port number",
toastMessage,
Toast.LENGTH_LONG
).show()
}

Wyświetl plik

@ -376,5 +376,6 @@
\n6. Press the post button to use Orbot as a proxy
</string>
<string name="orbot_socks_port">Orbot Socks Port</string>
<string name="invalid_port_number">Invalid port number</string>
</resources>