Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ravikant Sharma
Nebulo
Commits
36c94124
Commit
36c94124
authored
Jan 11, 2020
by
Daniel Wolf
Browse files
Show a different error for DoT
parent
130848ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/dialog/NewServerDialog.kt
View file @
36c94124
...
...
@@ -292,7 +292,8 @@ class NewServerDialog(
input
.
error
=
if
(
valid
)
{
null
}
else
context
.
getString
(
R
.
string
.
error_invalid_url
)
}
else
if
(
dnsOverHttps
)
context
.
getString
(
R
.
string
.
error_invalid_url
)
else
context
.
getString
(
R
.
string
.
error_invalid_host
)
}
override
fun
beforeTextChanged
(
s
:
CharSequence
?,
start
:
Int
,
count
:
Int
,
after
:
Int
)
{
...
...
app/src/main/res/values/strings.xml
View file @
36c94124
...
...
@@ -18,6 +18,7 @@
<string
name=
"all_close"
>
Close
</string>
<string
name=
"error_invalid_url"
>
Please provide a valid url.
</string>
<string
name=
"error_invalid_host"
>
Please provide a valid host.
</string>
<string
name=
"error_invalid_pin"
>
Please provide your PIN.
</string>
<string
name=
"error_invalid_servername"
>
Please provide a name.
</string>
<string
name=
"error_webview_missing"
>
WebView package not found, is it currently updating or removed?
</string>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment