mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00:00
add toast message to strings.xml
This commit is contained in:
parent
d31eca1b42
commit
0d051117b2
@ -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()
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user