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
Wade
DnsChanger
Commits
7e70107c
Commit
7e70107c
authored
Apr 10, 2018
by
Daniel Wolf
Browse files
Using TYPE_CLASS_NUMBER only allows one decimal place (but somehow using inputType in xml doesn't)
parent
d5256fc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/dnschanger/dialogs/DNSCreationDialog.java
View file @
7e70107c
...
...
@@ -220,9 +220,6 @@ public class DNSCreationDialog extends UtilityDialog {
if
(
settingV6
||
customPorts
){
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
}
else
{
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_FLAG_DECIMAL
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_FLAG_DECIMAL
);
}
if
(
settingV6
){
InputFilter
filter
=
new
InputCharacterFilter
(
customPorts
?
...
...
app/src/main/java/com/frostnerd/dnschanger/fragments/MainFragment.java
View file @
7e70107c
...
...
@@ -265,9 +265,6 @@ public class MainFragment extends Fragment {
if
(
settingV6
||
customPorts
){
dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
}
else
{
dns1
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_FLAG_DECIMAL
);
dns2
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_FLAG_DECIMAL
);
}
if
(!
settingV6
){
InputFilter
filter
=
new
InputCharacterFilter
(
customPorts
?
...
...
app/src/main/java/com/frostnerd/dnschanger/tasker/ConfigureActivity.java
View file @
7e70107c
...
...
@@ -318,9 +318,6 @@ public class ConfigureActivity extends AppCompatActivity {
if
(
settingV6
||
customPorts
){
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
}
else
{
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_FLAG_DECIMAL
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_FLAG_DECIMAL
);
}
InputFilter
filter
;
if
(
settingV6
){
...
...
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