add toast message to strings.xml
This commit is contained in:
+3
-1
@@ -60,6 +60,8 @@ fun ConnectOrbotDialog(onClose: () -> Unit, onPost: () -> Unit, portNumber: Muta
|
|||||||
onClose()
|
onClose()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
val toastMessage = stringResource(R.string.invalid_port_number)
|
||||||
|
|
||||||
PostButton(
|
PostButton(
|
||||||
onPost = {
|
onPost = {
|
||||||
try {
|
try {
|
||||||
@@ -68,7 +70,7 @@ fun ConnectOrbotDialog(onClose: () -> Unit, onPost: () -> Unit, portNumber: Muta
|
|||||||
scope.launch {
|
scope.launch {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
context,
|
context,
|
||||||
"Invalid port number",
|
toastMessage,
|
||||||
Toast.LENGTH_LONG
|
Toast.LENGTH_LONG
|
||||||
).show()
|
).show()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,5 +376,6 @@
|
|||||||
\n6. Press the post button to use Orbot as a proxy
|
\n6. Press the post button to use Orbot as a proxy
|
||||||
</string>
|
</string>
|
||||||
<string name="orbot_socks_port">Orbot Socks Port</string>
|
<string name="orbot_socks_port">Orbot Socks Port</string>
|
||||||
|
<string name="invalid_port_number">Invalid port number</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user