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
b808f63a
Commit
b808f63a
authored
Apr 16, 2018
by
Daniel Wolf
Browse files
Disable suggestions for ipv6
parent
f8aabbbd
Changes
3
Show whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/dnschanger/dialogs/DNSCreationDialog.java
View file @
b808f63a
...
...
@@ -221,8 +221,8 @@ public class DNSCreationDialog extends UtilityDialog {
private
void
setEditTextStates
(){
if
(
settingV6
||
customPorts
){
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
}
if
(
settingV6
){
InputFilter
filter
=
new
InputCharacterFilter
(
customPorts
?
...
...
app/src/main/java/com/frostnerd/dnschanger/fragments/MainFragment.java
View file @
b808f63a
...
...
@@ -159,8 +159,8 @@ public class MainFragment extends Fragment {
startStopButton
=
(
Button
)
findViewById
(
R
.
id
.
startStopButton
);
if
(
settingV6
||
PreferencesAccessor
.
areCustomPortsEnabled
(
requireContext
())){
dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
}
startStopButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
@@ -263,8 +263,8 @@ public class MainFragment extends Fragment {
private
void
setEditTextState
(){
boolean
customPorts
=
PreferencesAccessor
.
areCustomPortsEnabled
(
requireContext
());
if
(
settingV6
||
customPorts
){
dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
}
if
(!
settingV6
){
InputFilter
filter
=
new
InputCharacterFilter
(
customPorts
?
...
...
@@ -449,9 +449,9 @@ public class MainFragment extends Fragment {
}
public
boolean
toggleCurrentInputFocus
(){
if
(
dns1
.
hasFocus
()){
if
(
dns1
!=
null
&&
dns1
.
hasFocus
()){
dns2
.
requestFocus
();
}
else
if
(
dns2
.
hasFocus
()){
}
else
if
(
dns2
!=
null
&&
dns2
.
hasFocus
()){
dns1
.
requestFocus
();
}
else
return
false
;
return
true
;
...
...
app/src/main/java/com/frostnerd/dnschanger/tasker/ConfigureActivity.java
View file @
b808f63a
...
...
@@ -320,8 +320,8 @@ public class ConfigureActivity extends AppCompatActivity {
private
void
setInputType
(){
if
(
settingV6
||
customPorts
){
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
);
ed_dns1
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
ed_dns2
.
setInputType
(
InputType
.
TYPE_CLASS_TEXT
|
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
}
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