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
4c62da09
Commit
4c62da09
authored
Apr 16, 2018
by
Daniel Wolf
Browse files
Before disabling a type the opposite has to be enabled
parent
03bb7f30
Changes
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/dnschanger/fragments/CurrentNetworksFragment.java
View file @
4c62da09
...
...
@@ -91,6 +91,7 @@ public class CurrentNetworksFragment extends Fragment {
.
setPositiveButton
(
R
.
string
.
disable
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialogInterface
,
int
i
)
{
PreferencesAccessor
.
setIPv6Enabled
(
requireContext
(),
true
);
PreferencesAccessor
.
setIPv4Enabled
(
requireContext
(),
false
);
setDNSServersOf
(
properties
);
}
...
...
@@ -107,6 +108,7 @@ public class CurrentNetworksFragment extends Fragment {
.
setPositiveButton
(
R
.
string
.
disable
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialogInterface
,
int
i
)
{
PreferencesAccessor
.
setIPv4Enabled
(
requireContext
(),
true
);
PreferencesAccessor
.
setIPv6Enabled
(
requireContext
(),
false
);
setDNSServersOf
(
properties
);
}
...
...
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